Flow PHP

Definitions

Read onlyYes
FinalYes

Methods

fromArray()  : Definition<string|int, mixed>
The definition normalize() wrote: its name ("ref"), type, nullability and metadata.
merged()  : Definition<string|int, mixed>
$left and $right, one column described twice, widened to the definition both fit: the type TypeWidener widens them to, nullable when either is, and both metadata merged.
of()  : Definition<string|int, mixed>
The definition a column of $type has: one of the 19 Flow definitions, or a refusal.

Methods

fromArray()

The definition normalize() wrote: its name ("ref"), type, nullability and metadata.

public static fromArray(array<string|int, mixed> $definition) : Definition<string|int, mixed>
Parameters
$definition : array<string|int, mixed>
Tags
throws
RuntimeException
Return values
Definition<string|int, mixed>

merged()

$left and $right, one column described twice, widened to the definition both fit: the type TypeWidener widens them to, nullable when either is, and both metadata merged.

public static merged(Definition<string|int, mixed> $left, Definition<string|int, mixed> $right) : Definition<string|int, mixed>
Parameters
$left : Definition<string|int, mixed>
$right : Definition<string|int, mixed>
Tags
throws
RuntimeException

the two describe different columns

Return values
Definition<string|int, mixed>

of()

The definition a column of $type has: one of the 19 Flow definitions, or a refusal.

public static of(string $name, Type<string|int, mixed> $type[, bool $nullable = false ][, Metadata|null $metadata = null ]) : Definition<string|int, mixed>
Parameters
$name : string
$type : Type<string|int, mixed>
$nullable : bool = false
$metadata : Metadata|null = null
Return values
Definition<string|int, mixed>
On this page

Search results