Menu

## MethodInjection
in package
implements Definition

MethodInjection.php : 14

Describe an injection in an object method.

##### Tags

author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Interfaces

Definition

#### Properties

$methodName : string
$parameters : array<string|int, mixed>

#### Methods

__construct() : mixed
__toString() : string
constructor() : self
getMethodName() : string
getName() : string
getParameters() : array<string|int, mixed>
merge() : void
replaceNestedDefinitions() : void
replaceParameters() : void
  Replace the parameters of the definition by a new array of parameters.
setName() : void

### Properties

#### $methodName

MethodInjection.php : 20
`private string $methodName`

#### $parameters

MethodInjection.php : 21
`private array<string|int, mixed> $parameters = []`

### Methods

#### __construct()

MethodInjection.php : 19
`public __construct(string $methodName[, array<string|int, mixed> $parameters = [] ]) : mixed`

##### Parameters

$methodName : string
$parameters : array<string|int, mixed> = []

#### __toString()

MethodInjection.php : 72
`public __toString() : string`

##### Return values

string

#### constructor()

MethodInjection.php : 25
`public static constructor([array<string|int, mixed> $parameters = [] ]) : self`

##### Parameters

$parameters : array<string|int, mixed> = []

##### Return values

self

#### getMethodName()

MethodInjection.php : 30
`public getMethodName() : string`

##### Return values

string

#### getName()

MethodInjection.php : 57
`public getName() : string`

##### Return values

string

#### getParameters()

MethodInjection.php : 38
`public getParameters() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### merge()

MethodInjection.php : 51
`public merge(self $definition) : void`

##### Parameters

$definition : self

#### replaceNestedDefinitions()

MethodInjection.php : 67
`public replaceNestedDefinitions(callable $replacer) : void`

##### Parameters

$replacer : callable

#### replaceParameters()

MethodInjection.php : 46

Replace the parameters of the definition by a new array of parameters.

`public replaceParameters(array<string|int, mixed> $parameters) : void`

##### Parameters

$parameters : array<string|int, mixed>

#### setName()

MethodInjection.php : 62
`public setName(string $name) : void`

##### Parameters

$name : string

## Search results