keboola/php-datatypes

View on GitHub
src/Definition/DefinitionInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Keboola\Datatype\Definition;

interface DefinitionInterface
{
    public function getSQLDefinition(): string;

    /**
     * @return array{type:string, length:string|null, nullable:bool, compression?:mixed}
     */
    public function toArray(): array;

    public function getBasetype(): string;

    public static function getTypeByBasetype(string $basetype): string;
}