final class CaseExpression implements Component (View source)

Parses a reference to a CASE expression.

Properties

Expression|null $value

The value to be compared.

Condition[][] $conditions

The conditions in WHEN clauses.

Expression[] $results

The results matching with the WHEN clauses.

Expression[] $compareValues

The values to be compared against.

Expression|null $elseResult

The result in ELSE section of expr.

string|null $alias

The alias of this CASE statement.

string $expr

The sub-expression.

Methods

string
build()

Builds the string representation of a component of this type.

string
__toString()

No description

Details

string build()

Builds the string representation of a component of this type.

In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.

Return Value

string

string __toString()

No description

Return Value

string