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)

No description

Parameters

bool $state

Return Value

Parameter

at line 50
bool isReference()

No description

Return Value

bool

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

No description

Parameters

string|null $type

Return Value

Parameter

at line 68
string|null getType()

No description

Return Value

string|null

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

deprecated use setType()

No description

Parameters

string|null $type

Return Value

Parameter

at line 83
string|null getTypeHint() deprecated

deprecated use getType()

No description

Return Value

string|null

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

deprecated just use setDefaultValue()

No description

Parameters

bool $state

Return Value

Parameter

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

No description

Parameters

bool $state

Return Value

Parameter

at line 109
bool isNullable()

No description

Return Value

bool

at line 116
Parameter setDefaultValue($val)

No description

Parameters

$val

Return Value

Parameter

at line 124
getDefaultValue()

No description

at line 130
bool hasDefaultValue()

No description

Return Value

bool

Traits

Strict class for better experience.