class Type

PHP return, property and parameter types.

Constants

STRING

INT

FLOAT

BOOL

ARRAY

OBJECT

CALLABLE

ITERABLE

VOID

NULL

SELF

PARENT

Methods

static string
nullable(string $type, bool $state = true)

No description

static string
union(string ...$types)

No description

static string|null
getType($value)

No description

Details

at line 33
static string nullable(string $type, bool $state = true)

No description

Parameters

string $type
bool $state

Return Value

string

at line 39
static string union(string ...$types)

No description

Parameters

string ...$types

Return Value

string

at line 45
static string|null getType($value)

No description

Parameters

$value

Return Value

string|null