Flow PHP

StructureElement

Read onlyYes
FinalYes

TOptional mirrors the runtime flag into the type so analyzers can mark the shape key optional without reading the call expression.

Tags
template-covariant

of bool

Properties

$name  : int|string
$optional  : bool
$type  : Type

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(int|string $name, Type<string|int, T$type[, TOptional $optional = false ]) : mixed
Parameters
$name : int|string
$type : Type<string|int, T>
$optional : TOptional = false
On this page

Search results