class Parameter

Method parameter description.

Traits

Strict class for better experience.

Properties

mixed $defaultValue

Methods

setReference(bool $state = true)

No description

bool
isReference()

No description

setTypeHint(string|null $hint)

No description

string|null
getTypeHint()

No description

setOptional(bool $state = true) deprecated

No description

setNullable(bool $state = true)

No description

bool
isNullable()

No description

setDefaultValue($val)

No description

getDefaultValue()

No description

bool
hasDefaultValue()

No description

Details

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

Parameters

bool $state

Return Value

Parameter

at line 51
bool isReference()

Return Value

bool

at line 60
Parameter setTypeHint(string|null $hint)

Parameters

string|null $hint

Return Value

Parameter

at line 67
string|null getTypeHint()

Return Value

string|null

at line 77
Parameter setOptional(bool $state = true) deprecated

deprecated just use setDefaultValue()

Parameters

bool $state

Return Value

Parameter

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

Parameters

bool $state

Return Value

Parameter

at line 95
bool isNullable()

Return Value

bool

at line 104
Parameter setDefaultValue($val)

Parameters

$val

Return Value

Parameter

at line 112
getDefaultValue()

at line 118
bool hasDefaultValue()

Return Value

bool