Any implements ScalarFunction uses ResolvesFromChildren
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- and() : All
- andNot() : All
- children() : array<int, ScalarFunction>
- Every operand of this node that is an expression, in constructor order.
- eval() : bool|null
- or() : self
- orNot() : self
- resolved() : bool
- returns() : Type<string|int, mixed>
- The type of the column this function produces, before any row is read.
- 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(ScalarFunction ...$functions) : mixed
Parameters
- $functions : ScalarFunction
and()
public
and(ScalarFunction $scalarFunction) : All
Parameters
- $scalarFunction : ScalarFunction
Return values
AllandNot()
public
andNot(ScalarFunction $scalarFunction) : All
Parameters
- $scalarFunction : ScalarFunction
Return values
Allchildren()
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) : bool|null
Parameters
- $row : Row
- $context : FlowContext
Return values
bool|nullor()
public
or(ScalarFunction $scalarFunction) : self
Parameters
- $scalarFunction : ScalarFunction
Return values
selforNot()
public
orNot(ScalarFunction $scalarFunction) : self
Parameters
- $scalarFunction : ScalarFunction
Return values
selfresolved()
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>withChildren()
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>