class CaseExpression extends Component

Parses a reference to a CASE expression.

Properties

Expression $value The value to be compared.
array $conditions The conditions in WHEN clauses.
array $results The results matching with the WHEN clauses.
array $compare_values The values to be compared against.
Expression $else_result The result in ELSE section of expr.
string $expr The sub-expression.

Methods

static mixed
parse(Parser $parser, TokensList $list, array $options = array())

No description

static string
build(mixed $component, array $options = array())

No description

string
__toString()

Builds the string representation of a component of this type.

from Component
__construct()

Constructor.

Details

at line 79
static mixed parse(Parser $parser, TokensList $list, array $options = array())

Parameters

Parser $parser the parser that serves as context
TokensList $list the list of tokens that are being parsed
array $options parameters for parsing

Return Value

mixed

at line 216
static string build(mixed $component, array $options = array())

Parameters

mixed $component the component to be built
array $options parameters for building

Return Value

string

in Component at line 73
string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also

at line 68
__construct()

Constructor.