Parameter
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- as() : mixed
- asArray() : array<string|int, mixed>|null
- asBoolean() : bool
- asEntry() : null|Entry<mixed, mixed>
- asEnum() : null|T
- asFloat() : float|null
- asInstanceOf() : null|T
- asInt() : int|null
- asListOfObjects() : array<string|int, mixed>|null
- asNumber() : int|float|null
- asObject() : object|null
- asString() : string|null
- eval() : mixed
Methods
__construct()
public
__construct(mixed $function) : mixed
Parameters
- $function : mixed
as()
public
as(Row $row, Type<string|int, mixed> $type, Type<string|int, mixed> ...$types) : mixed
Parameters
asArray()
public
asArray(Row $row) : array<string|int, mixed>|null
Parameters
- $row : Row
Return values
array<string|int, mixed>|nullasBoolean()
public
asBoolean(Row $row) : bool
Parameters
- $row : Row
Return values
boolasEntry()
public
asEntry(Row $row) : null|Entry<mixed, mixed>
Parameters
- $row : Row
Return values
null|Entry<mixed, mixed>asEnum()
public
asEnum(Row $row, T> $enumClass) : null|T
Parameters
- $row : Row
- $enumClass : T>
Tags
Return values
null|TasFloat()
public
asFloat(Row $row) : float|null
Parameters
- $row : Row
Return values
float|nullasInstanceOf()
public
asInstanceOf(Row $row, T> $class) : null|T
Parameters
- $row : Row
- $class : T>
Tags
Return values
null|TasInt()
public
asInt(Row $row[, int|null $default = null ]) : int|null
Parameters
- $row : Row
- $default : int|null = null
Tags
Return values
int|nullasListOfObjects()
public
asListOfObjects(Row $row, string $class) : array<string|int, mixed>|null
Parameters
- $row : Row
- $class : string
Return values
array<string|int, mixed>|nullasNumber()
public
asNumber(Row $row[, int|float|null $default = null ]) : int|float|null
Parameters
- $row : Row
- $default : int|float|null = null
Tags
Return values
int|float|nullasObject()
public
asObject(Row $row) : object|null
Parameters
- $row : Row
Return values
object|nullasString()
public
asString(Row $row[, string|null $default = null ]) : string|null
Parameters
- $row : Row
- $default : string|null = null
Tags
Return values
string|nulleval()
public
eval(Row $row) : mixed
Parameters
- $row : Row