PHP Class SqlParser\Components\ArrayObj

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

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

build() public static méthode

public static build ( ArrayObj | ArrayObj[] $component, array $options = [] ) : string
$component ArrayObj | ArrayObj[] The component to be built.
$options array Parameters for building.
Résultat string

parse() public static méthode

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.
Résultat ArrayObj | Component[]

Property Details

$raw public_oe property

The array that contains the unprocessed value of each token.
public array $raw
Résultat array

$values public_oe property

The array that contains the processed value of each token.
public array $values
Résultat array