Parameter Reflection

Decorates a ReflectionParameter to allow setting the parameter type

 Methods

Proxy reflection calls

__call(string $method, array $args) : mixed

Parameters

$method

string

$args

array

Exceptions

\Zend\Server\Reflection\Exception\BadMethodCallException

Returns

mixed

Constructor

__construct(\ReflectionParameter $r, string $type, string $description) 

Parameters

$type

string

Parameter type

$description

string

Parameter description

Retrieve parameter description

getDescription() : string

Returns

string

Return parameter position

getPosition() : int

Returns

int

Retrieve parameter type

getType() : string

Returns

string

Set parameter description

setDescription(string | null $description) : void

Parameters

$description

stringnull

Exceptions

\Zend\Server\Reflection\Exception\InvalidArgumentException

Set parameter position

setPosition(int $index) : void

Parameters

$index

int

Set parameter type

setType(string | null $type) : void

Parameters

$type

stringnull

Exceptions

\Zend\Server\Reflection\Exception\InvalidArgumentException

 Properties

 

Parameter description

$description : string

 

Parameter position

$position : int

 

$reflection

$reflection : \ReflectionParameter

 

Parameter type

$type : string