ResultColumn
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- holdsLosslessly() : bool
- An intermediate keeps its values in a typed column only when that column holds them losslessly: a type with a column kind, no xml/xml_element/html/html_element (a column keeps markup, not the live node) and no untyped array<mixed> (a column keeps it as json) at any depth.
- keepsValues() : bool
- lists() : Column
- The `list<returns()>` column of an ExpandResults function: one list per row.
- of() : Column
- typed() : Column
Methods
__construct()
public
__construct(Backend $backend) : mixed
Parameters
- $backend : Backend
holdsLosslessly()
An intermediate keeps its values in a typed column only when that column holds them losslessly: a type with a column kind, no xml/xml_element/html/html_element (a column keeps markup, not the live node) and no untyped array<mixed> (a column keeps it as json) at any depth.
public
holdsLosslessly(Type<string|int, mixed> $type) : bool
Parameters
- $type : Type<string|int, mixed>
Return values
boolkeepsValues()
public
keepsValues(Type<string|int, mixed> $type) : bool
Parameters
- $type : Type<string|int, mixed>
Return values
boollists()
The `list<returns()>` column of an ExpandResults function: one list per row.
public
lists(ScalarFunction $function, array<int, array<int, mixed>|null> $lists) : Column
Parameters
- $function : ScalarFunction
- $lists : array<int, array<int, mixed>|null>
Return values
Columnof()
public
of(ScalarFunction $function, array<int, mixed> $values) : Column
Parameters
- $function : ScalarFunction
- $values : array<int, mixed>
-
logical or raw, cast once by the builder
Return values
Columntyped()
public
typed(Type<string|int, mixed> $type, array<int, mixed> $values) : Column
Parameters
- $type : Type<string|int, mixed>
- $values : array<int, mixed>