MethodInjection
in package
implements
Definition
Describe an injection in an object method.
Tags
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
private
string
$methodName
$parameters
private
array<string|int, mixed>
$parameters
= []
Methods
__construct()
public
__construct(string $methodName[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $methodName : string
- $parameters : array<string|int, mixed> = []
__toString()
public
__toString() : string
Return values
stringconstructor()
public
static constructor([array<string|int, mixed> $parameters = [] ]) : self
Parameters
- $parameters : array<string|int, mixed> = []
Return values
selfgetMethodName()
public
getMethodName() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>merge()
public
merge(self $definition) : void
Parameters
- $definition : self
replaceNestedDefinitions()
public
replaceNestedDefinitions(callable $replacer) : void
Parameters
- $replacer : callable
replaceParameters()
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()
public
setName(string $name) : void
Parameters
- $name : string