mini\Parsing\SQL\AST\CaseWhenNode class

Documentation

CASE expression node

Supports two forms:

  1. Simple CASE: CASE expr WHEN value1 THEN result1 [WHEN ...] [ELSE result] END
  2. Searched CASE: CASE WHEN condition1 THEN result1 [WHEN ...] [ELSE result] END

Inheritance

Extends: mini\Parsing\SQL\AST\ASTNode

Implements: JsonSerializable

Properties (4)

public string $type
public ?mini\Parsing\SQL\AST\ASTNode $operand
public array $whenClauses
public ?mini\Parsing\SQL\AST\ASTNode $elseResult

Methods (3)

Documentation missing

Documentation missing

Create a deep clone of this AST node

Source

src/Parsing/SQL/AST/CaseWhenNode.php:12-26