Flow PHP

Parameter

Read onlyYes
FinalYes

Methods

__construct()  : mixed
as()  : null|T
asArray()  : null|array<string|int, mixed>
asBoolean()  : bool
asEntry()  : null|Entry<string|int, mixed>
asEnum()  : null|T
asFloat()  : float|null
asInstanceOf()  : null|T
asInt()  : int|null
asListOfObjects()  : null|array<string|int, object>
asNumber()  : int|float|null
asObject()  : object|null
asString()  : string|null
asType()  : Type<string|int, mixed>
eval()  : mixed

Methods

__construct()

public __construct(mixed $function) : mixed
Parameters
$function : mixed

as()

public as(Row $row, Type<string|int, T$type, Type<string|int, T...$types) : null|T
Parameters
$row : Row
$type : Type<string|int, T>
$types : Type<string|int, T>
Tags
template
Return values
null|T

asArray()

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

asBoolean()

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

asEntry()

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

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) : null|array<string|int, object>
Parameters
$row : Row
$class : string
Return values
null|array<string|int, object>

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

asType()

public asType(Row $row) : Type<string|int, mixed>
Parameters
$row : Row
Return values
Type<string|int, mixed>

        
On this page

Search results