-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathColumnDefinitionParserInterface.php
More file actions
36 lines (33 loc) · 910 Bytes
/
ColumnDefinitionParserInterface.php
File metadata and controls
36 lines (33 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Syntax;
/**
* Parses column definition string. For example, `string(255)` or `int unsigned`.
*/
interface ColumnDefinitionParserInterface
{
/**
* Parses column definition string.
*
* @param string $definition The column definition string. For example, `string(255)` or `int unsigned`.
*
* @return array The column information.
*
* @psalm-return array{
* check?: string,
* collation?: string,
* comment?: string,
* defaultValueRaw?: string,
* dimension?: positive-int,
* enumValues?: list<string>,
* extra?: string,
* notNull?: bool,
* scale?: int,
* size?: int,
* type: lowercase-string,
* unique?: bool,
* unsigned?: bool,
* }
*/
public function parse(string $definition): array;
}