Table of Contents
-
$types
: array<string|int, string>
-
__construct()
: mixed
-
canUseNullShorthand()
: bool
-
getNonNullTypes()
: array<string|int, mixed>
-
getTypes()
: array<string|int, mixed>
-
getRealType()
: string
-
guardIsValidType()
: mixed
-
prefixWithNsSeparator()
: string
$types
protected
array<string|int, string>
$types
= []
__construct()
public
__construct(string ...$types) : mixed
Parameters
-
$types
: string
-
Return values
mixed
—
canUseNullShorthand()
public
canUseNullShorthand() : bool
Return values
bool
—
getNonNullTypes()
public
getNonNullTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getTypes()
public
getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getRealType()
protected
getRealType(string $type) : string
Parameters
-
$type
: string
-
Return values
string
—
guardIsValidType()
protected
guardIsValidType() : mixed
Return values
mixed
—
prefixWithNsSeparator()
protected
prefixWithNsSeparator(string $type) : string
Parameters
-
$type
: string
-
Return values
string
—