classCaseBranch
final class CaseBranch
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One WHEN branch of a CASE expression.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze("SELECT CASE WHEN a THEN 'x' END FROM t");
$query->statement->columns[0]->expression->branches[0]->then->value // => 'x'Properties§
public Scalar $whenpublic Scalar $thenMethods§
public function __construct(public Scalar $when, public Scalar $then)Parameters
$when | Scalar | The condition, or the value compared with the base expression |
$then | Scalar | The result of the branch |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.