Flow PHP

functions.php

Functions

structure_element()

structure_element(int|string $name, Type<string|int, T> $type[, TOptional $optional = false ]) : StructureElement<T, TOptional>
Parameters
$name : int|string
$type : Type<string|int, T>
$optional : TOptional = false
Tags
template
Return values
StructureElement<T, TOptional>

type_union()

type_union(Type<string|int, T> $first, Type<string|int, T> $second, Type<string|int, T> ...$types) : UnionType<T, T>
Parameters
$first : Type<string|int, T>
$second : Type<string|int, T>
$types : Type<string|int, T>
Tags
template
Return values
UnionType<T, T>

type_from_array()

type_from_array(array<string, mixed> $data) : Type<string|int, mixed>
Parameters
$data : array<string, mixed>
Return values
Type<string|int, mixed>

type_is_nullable()

type_is_nullable(Type<string|int, T> $type) : bool
Parameters
$type : Type<string|int, T>
Tags
template
Return values
bool

type_bare()

Strip exactly one level of nullability, whichever of the two spellings carries it (OptionalType, or a UnionType containing NullType). Total: a NOT NULL type is returned unchanged.

type_bare(Type<string|int, T> $type) : Type<string|int, mixed>
Parameters
$type : Type<string|int, T>
Tags
template
Return values
Type<string|int, mixed>

type_equals()

type_equals(Type<string|int, mixed> $left, Type<string|int, mixed> $right) : bool
Parameters
$left : Type<string|int, mixed>
$right : Type<string|int, mixed>
Return values
bool

types()

types(Type<string|int, T> ...$types) : Types<string|int, T>
Parameters
$types : Type<string|int, T>
Tags
template
Return values
Types<string|int, T>

type_list()

type_list(Type<string|int, T> $element) : ListType<string|int, T>
Parameters
$element : Type<string|int, T>
Tags
template
Return values
ListType<string|int, T>

type_map()

type_map(Type<string|int, TKey> $key_type, Type<string|int, TValue> $value_type) : MapType<TKey, TValue>
Parameters
$key_type : Type<string|int, TKey>
$value_type : Type<string|int, TValue>
Tags
template
Return values
MapType<TKey, TValue>

type_enum()

type_enum(T> $class) : EnumType<string|int, T>
Parameters
$class : T>
Tags
template
Return values
EnumType<string|int, T>

type_is()

type_is(Type<string|int, T> $type, string $typeClass) : bool
Parameters
$type : Type<string|int, T>
$typeClass : string
Tags
template
Return values
bool

type_is_any()

type_is_any(Type<string|int, T> $type, string $typeClass, string ...$typeClasses) : bool
Parameters
$type : Type<string|int, T>
$typeClass : string
$typeClasses : string
Tags
template
Return values
bool

get_type()

get_type(mixed $value) : Type<string|int, mixed>
Parameters
$value : mixed
Return values
Type<string|int, mixed>

type_class_string()

type_class_string([null|T> $class = null ]) : T>>)
Parameters
$class : null|T> = null
Tags
template
Return values
T>>)

dom_element_to_string()

dom_element_to_string(DOMElement $element[, bool $format_output = false ][, bool $preserver_white_space = false ]) : string|false
Parameters
$element : DOMElement
$format_output : bool = false
$preserver_white_space : bool = false
Return values
string|false
On this page

Search results