Key
final class Key extends Component (View source)
Parses the definition of a key.
Used for parsing CREATE TABLE
statement.
Properties
static array<string,int|array<int,int|string>> | $KEY_OPTIONS | All key options. |
|
string | $name | The name of this key. |
|
array<int,array<string,int|string>> | $columns | The key columns |
|
string | $type | The type of this key. |
|
string|null | $expr | The expression if the Key is not using column names |
|
OptionsArray|null | $options | The options of this key or null if none where found. |
Methods
static mixed
static mixed
build(mixed $component, array $options = [])
No description
__construct(string $name = null, array $columns = [], string $type = null, OptionsArray $options = null)
No description
Details
static mixed
parse(Parser $parser, TokensList $list, array $options = [])
No description
static mixed
build(mixed $component, array $options = [])
No description
string
__toString()
Builds the string representation of a component of this type.
__construct(string $name = null, array $columns = [], string $type = null, OptionsArray $options = null)
No description