class Type

PHP return, property and parameter types.

Constants

STRING

INT

FLOAT

BOOL

ARRAY

OBJECT

CALLABLE

ITERABLE

VOID

NEVER

MIXED

FALSE

NULL

SELF

PARENT

STATIC

Methods

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

No description

static string
union(string ...$types)

No description

static string
intersection(string ...$types)

No description

static string|null
getType(mixed $value) deprecated

No description

Details

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

No description

Parameters

string $type
bool $state

Return Value

string

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

No description

Parameters

string ...$types

Return Value

string

at line 49
static string intersection(string ...$types)

No description

Parameters

string ...$types

Return Value

string

at line 56
static string|null getType(mixed $value) deprecated

deprecated use get_debug_type()

No description

Parameters

mixed $value

Return Value

string|null