Flow PHP

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
$row : Row
$type : Type<string|int, mixed>
$types : Type<string|int, mixed>

asArray()

public asArray(Row $row) : array<string|int, mixed>|null
Parameters
$row : Row
Return values
array<string|int, mixed>|null

asBoolean()

public asBoolean(Row $row) : bool
Parameters
$row : Row
Return values
bool

asEnum()

public asEnum(Row $row, T> $enumClass) : null|T
Parameters
$row : Row
$enumClass : T>
Tags
template
Return values
null|T

asFloat()

public asFloat(Row $row) : float|null
Parameters
$row : Row
Return values
float|null

asInstanceOf()

public asInstanceOf(Row $row, T> $class) : null|T
Parameters
$row : Row
$class : T>
Tags
template
Return values
null|T

asInt()

public asInt(Row $row[, int|null $default = null ]) : int|null
Parameters
$row : Row
$default : int|null = null
Tags
phpstan-return

($default is null ? int|null : int)

Return values
int|null

asListOfObjects()

public asListOfObjects(Row $row, string $class) : array<string|int, mixed>|null
Parameters
$row : Row
$class : string
Return values
array<string|int, mixed>|null

asNumber()

public asNumber(Row $row[, int|float|null $default = null ]) : int|float|null
Parameters
$row : Row
$default : int|float|null = null
Tags
phpstan-return

($default is null ? int|float|null : int|float)

Return values
int|float|null

asObject()

public asObject(Row $row) : object|null
Parameters
$row : Row
Return values
object|null

asString()

public asString(Row $row[, string|null $default = null ]) : string|null
Parameters
$row : Row
$default : string|null = null
Tags
phpstan-return

($default is null ? string|null : string)

Return values
string|null

        
On this page

Search results