mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
42 lines
687 B
PHP
42 lines
687 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Xentral\Components\SchemaCreator\Interfaces;
|
||
|
|
||
|
interface ColumnInterface
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @var null|string[]
|
||
|
*/
|
||
|
public const DEFAULT_PARAMS = [
|
||
|
'default' => null,
|
||
|
'charset' => null,
|
||
|
'collate' => null,
|
||
|
'comment' => null,
|
||
|
'nullable' => true,
|
||
|
'extra' => null,
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getField(): string;
|
||
|
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getType(): string;
|
||
|
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getOptions(): array;
|
||
|
|
||
|
/**
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function isNullable() : bool;
|
||
|
}
|