PHP Class SqlParser\Components\ParameterDefinition

Author: Dan Ungureanu ([email protected])
Inheritance: extends SqlParser\Component
Mostrar archivo Open project: phpmyadmin/sql-parser Class Usage Examples

Public Properties

Property Type Description
$inOut string Parameter's direction (IN, OUT or INOUT).
$name string The name of the new column.
$type DataType The data type of thew new column.

Public Methods

Method Description
build ( ParameterDefinition[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : ParameterDefinition[]

Method Details

build() public static method

public static build ( ParameterDefinition[] $component, array $options = [] ) : string
$component ParameterDefinition[] The component to be built.
$options array Parameters for building.
return string

parse() public static method

public static parse ( Parser $parser, TokensList $list, array $options = [] ) : ParameterDefinition[]
$parser SqlParser\Parser The parser that serves as context.
$list SqlParser\TokensList The list of tokens that are being parsed.
$options array Parameters for parsing.
return ParameterDefinition[]

Property Details

$inOut public_oe property

Parameter's direction (IN, OUT or INOUT).
public string $inOut
return string

$name public_oe property

The name of the new column.
public string $name
return string

$type public_oe property

The data type of thew new column.
public DataType,SqlParser\Components $type
return DataType