trait ArgumentTrait

Methods

$this
args(array $arguments)

Sets the arguments to pass to the service constructor/factory method.

$this
arg(string|int $key, mixed $value)

Sets one argument to pass to the service constructor/factory method.

Details

at line 23
final $this args(array $arguments)

Sets the arguments to pass to the service constructor/factory method.

Parameters

array $arguments An array of arguments

Return Value

$this

at line 38
final $this arg(string|int $key, mixed $value)

Sets one argument to pass to the service constructor/factory method.

Parameters

string|int $key
mixed $value

Return Value

$this