PHP Class SqlParser\Components\ArrayObj

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

Public Properties

Property Type Description
$raw array The array that contains the unprocessed value of each token.
$values array The array that contains the processed value of each token.

Public Methods

Method Description
__construct ( array $raw = [], array $values = [] ) Constructor.
build ( ArrayObj | ArrayObj[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : ArrayObj | Component[]

Method Details

__construct() public method

Constructor.
public __construct ( array $raw = [], array $values = [] )
$raw array The unprocessed values.
$values array The processed values.

build() public static method

public static build ( ArrayObj | ArrayObj[] $component, array $options = [] ) : string
$component ArrayObj | ArrayObj[] 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 = [] ) : ArrayObj | Component[]
$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 ArrayObj | Component[]

Property Details

$raw public_oe property

The array that contains the unprocessed value of each token.
public array $raw
return array

$values public_oe property

The array that contains the processed value of each token.
public array $values
return array