Definitions for an injection endpoint method

package Default

 Methods

addParameter()

addParameter(string $name, string|null $class = null, mixed|null $isRequired = null, mixed|null $default = null) : \Zend\Di\Definition\Builder\InjectionMethod

Parameters

$name

string

$class

stringnull

$isRequired

mixednull

$default

mixednull

Returns

\Zend\Di\Definition\Builder\InjectionMethod

detectMethodRequirement()

detectMethodRequirement(mixed $requirement) : integer
Static

Parameters

$requirement

mixed

Returns

integer

getName()

getName() : null | string

Returns

nullstring

getParameters()

getParameters() : array

Returns

array

setName()

setName(string|null $name) : \Zend\Di\Definition\Builder\InjectionMethod
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

stringnull

Returns

\Zend\Di\Definition\Builder\InjectionMethod

 Properties

 

$name

$name : string | null

Default

null
 

$parameters

$parameters : array

Default

array()