class Parameter

Function/Method parameter description.

Properties

mixed $defaultValue

Methods

setReference(bool $state = true)

No description

bool
isReference()

No description

setType(string|null $type)

No description

string|null
getType()

No description

setTypeHint(string|null $type) deprecated

No description

string|null
getTypeHint() deprecated

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 43
Parameter setReference(bool $state = true)

Parameters

bool $state

Return Value

Parameter

at line 50
bool isReference()

Return Value

bool

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

Parameters

string|null $type

Return Value

Parameter

at line 64
string|null getType()

Return Value

string|null

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

deprecated use setType()

Parameters

string|null $type

Return Value

Parameter

at line 79
string|null getTypeHint() deprecated

deprecated use getType()

Return Value

string|null

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

deprecated just use setDefaultValue()

Parameters

bool $state

Return Value

Parameter

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

Parameters

bool $state

Return Value

Parameter

at line 105
bool isNullable()

Return Value

bool

at line 112
Parameter setDefaultValue($val)

Parameters

$val

Return Value

Parameter

at line 120
getDefaultValue()

at line 126
bool hasDefaultValue()

Return Value

bool

Traits

Strict class for better experience.