Documentation

ArgumentTrait

Table of Contents

arg()  : $this
Sets one argument to pass to the service constructor/factory method.
args()  : $this
Sets the arguments to pass to the service constructor/factory method.

Methods

arg()

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

public final arg(string|int $key, mixed $value) : $this
Parameters
$key : string|int
$value : mixed
Return values
$this

args()

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

public final args(array<string|int, mixed> $arguments) : $this
Parameters
$arguments : array<string|int, mixed>
Return values
$this

Search results