Documentation

MethodInjection
in package
implements Definition

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

Methods

__construct()

public __construct(string $methodName[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
$methodName : string
$parameters : array<string|int, mixed> = []

constructor()

public static constructor([array<string|int, mixed> $parameters = [] ]) : self
Parameters
$parameters : array<string|int, mixed> = []
Return values
self

getMethodName()

public getMethodName() : string
Return values
string

getParameters()

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

        
On this page

Search results