All implements ScalarFunction uses ResolvesFromChildren
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- and() : self
- andNot() : self
- children() : array<int, ScalarFunction>
- Every operand of this node that is an expression, in constructor order.
- eval() : bool|null
- or() : Any
- orNot() : Any
- 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) : self
Parameters
- $scalarFunction : ScalarFunction
Return values
selfandNot()
public
andNot(ScalarFunction $scalarFunction) : self
Parameters
- $scalarFunction : ScalarFunction
Return values
selfchildren()
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) : Any
Parameters
- $scalarFunction : ScalarFunction
Return values
AnyorNot()
public
orNot(ScalarFunction $scalarFunction) : Any
Parameters
- $scalarFunction : ScalarFunction
Return values
Anyresolved()
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>