GeneralCaseExpression
extends Node
in package
GeneralCaseExpression ::= "CASE" WhenClause {WhenClause}* "ELSE" ScalarExpression "END"
Tags
Table of Contents
Properties
- $elseScalarExpression : mixed
- $whenClauses : array<string|int, mixed>
Methods
- __construct() : mixed
- __toString() : string
- Dumps the AST Node into a string representation for information purpose only.
- dispatch() : string
- Double-dispatch method, supposed to dispatch back to the walker.
- dump() : string
Properties
$elseScalarExpression
public
mixed
$elseScalarExpression
= null
$whenClauses
public
array<string|int, mixed>
$whenClauses
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $whenClauses, mixed $elseScalarExpression) : mixed
Parameters
- $whenClauses : array<string|int, mixed>
- $elseScalarExpression : mixed
__toString()
Dumps the AST Node into a string representation for information purpose only.
public
__toString() : string
Return values
stringdispatch()
Double-dispatch method, supposed to dispatch back to the walker.
public
dispatch(mixed $sqlWalker) : string
Parameters
- $sqlWalker : mixed
Return values
stringdump()
public
dump(mixed $value) : string
Parameters
- $value : mixed