class Parameter

Function/Method parameter description.

Methods

setReference(bool $state = true)

No description

bool
isReference()

No description

setType(string|null $type)

No description

Type|string|null
getType(bool $asObject = false)

No description

setTypeHint(string|null $type) deprecated

No description

string|null
getTypeHint() deprecated

No description

setNullable(bool $state = true)

No description

bool
isNullable()

No description

setDefaultValue(mixed $val)

No description

mixed
getDefaultValue()

No description

bool
hasDefaultValue()

No description

void
validate()

No description

Details

at line 34
Parameter setReference(bool $state = true)

No description

Parameters

bool $state

Return Value

Parameter

at line 41
bool isReference()

No description

Return Value

bool

at line 47
Parameter setType(string|null $type)

No description

Parameters

string|null $type

Return Value

Parameter

at line 57
Type|string|null getType(bool $asObject = false)

No description

Parameters

bool $asObject

Return Value

Type|string|null

at line 66
Parameter setTypeHint(string|null $type) deprecated

deprecated use setType()

No description

Parameters

string|null $type

Return Value

Parameter

at line 74
string|null getTypeHint() deprecated

deprecated use getType()

No description

Return Value

string|null

at line 81
Parameter setNullable(bool $state = true)

No description

Parameters

bool $state

Return Value

Parameter

at line 88
bool isNullable()

No description

Return Value

bool

at line 94
Parameter setDefaultValue(mixed $val)

No description

Parameters

mixed $val

Return Value

Parameter

at line 102
mixed getDefaultValue()

No description

Return Value

mixed

at line 108
bool hasDefaultValue()

No description

Return Value

bool

at line 114
void validate()

No description

Return Value

void

Traits

Strict class for better experience.