Menu

## Inject
in package

FinalYes
Inject.php : 19

#[Inject] attribute.

Marks a property or method as an injection point

##### Tags

author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Properties

$name : string|null
  Entry name.
$parameters : array<string|int, mixed>
  Parameters, indexed by the parameter number (index) or name.

#### Methods

__construct() : mixed
getName() : string|null
getParameters() : array<string|int, mixed>

### Properties

#### $name

Inject.php : 25

Entry name.

`private string|null $name = null`

#### $parameters

Inject.php : 32

Parameters, indexed by the parameter number (index) or name.

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

Used if the attribute is set on a method

### Methods

#### __construct()

Inject.php : 37
`public __construct([string|array<string|int, mixed>|null $name = null ]) : mixed`

##### Parameters

$name : string|array<string|int, mixed>|null = null

##### Tags

throws
  InvalidAttribute

#### getName()

Inject.php : 62
`public getName() : string|null`

##### Return values

string|null —

Name of the entry to inject

#### getParameters()

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

##### Return values

array<string|int, mixed> —

Parameters, indexed by the parameter number (index) or name

## Search results