PHP Class SqlParser\Components\CaseExpression

Inheritance: extends SqlParser\Component
Mostrar archivo Open project: phpmyadmin/sql-parser Class Usage Examples

Public Properties

Property Type Description
$compare_values array The values to be compared against
$conditions array The conditions in WHEN clauses
$else_result array The result in ELSE section of expr
$results array The results matching with the WHEN clauses
$value Expression The value to be compared

Public Methods

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

Method Details

__construct() public method

Constructor.
public __construct ( )

build() public static method

public static build ( Expression $component, array $options = [] ) : string
$component Expression 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 = [] ) : Expression
$parser SqlParser\Parser The parser that serves as context.
$list SqlParser\TokensList The list of tokens that are being parsed.
$options array
return Expression

Property Details

$compare_values public_oe property

The values to be compared against
public array $compare_values
return array

$conditions public_oe property

The conditions in WHEN clauses
public array $conditions
return array

$else_result public_oe property

The result in ELSE section of expr
public array $else_result
return array

$results public_oe property

The results matching with the WHEN clauses
public array $results
return array

$value public_oe property

The value to be compared
public Expression,SqlParser\Components $value
return Expression