MatchCondition implements ScalarFunction uses ResolvesFromChildren
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- children() : array<int, ScalarFunction>
- Every operand of this node that is an expression, in constructor order.
- eval() : mixed
- resolved() : bool
- returns() : Type<string|int, mixed>
- The type of the column this function produces, before any row is read.
- valid() : bool
- withChildren() : static
- A copy of this node with $children in place of children(): same count, same order, same per-element narrowing. Never mutates $this.
Methods
__construct()
public
__construct(mixed $condition, mixed $then) : mixed
Parameters
- $condition : mixed
- $then : mixed
children()
Every operand of this node that is an expression, in constructor order.
public
children() : array<int, ScalarFunction>
Return values
array<int, ScalarFunction>eval()
public
eval(Row $row, FlowContext $context) : mixed
Parameters
- $row : Row
- $context : FlowContext
resolved()
public
resolved() : bool
Return values
boolreturns()
The type of the column this function produces, before any row is read.
public
returns() : Type<string|int, mixed>
Return values
Type<string|int, mixed>valid()
public
valid(Row $row, FlowContext $context) : bool
Parameters
- $row : Row
- $context : FlowContext
Return values
boolwithChildren()
A copy of this node with $children in place of children(): same count, same order, same per-element narrowing. Never mutates $this.
public
withChildren(array<int, FunctionTree> $children) : static
Parameters
- $children : array<int, FunctionTree>