final class DataType implements Component (View source)

Parses a data type.

Properties

string|null $name

The name of the data type.

int[]|string[] $parameters

The parameters of this data type.

OptionsArray|null $options

The options of this data type.

bool $lowercase

Methods

__construct(string|null $name = null, array $parameters = [], OptionsArray|null $options = null)

No description

string
build()

Builds the string representation of a component of this type.

string
__toString()

No description

Details

__construct(string|null $name = null, array $parameters = [], OptionsArray|null $options = null)

No description

Parameters

string|null $name

the name of this data type

array $parameters

the parameters (size or possible values)

OptionsArray|null $options

the options of this data type

string build()

Builds the string representation of a component of this type.

In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.

Return Value

string

string __toString()

No description

Return Value

string