Menu

## PropertyInjection
in package

PropertyInjection.php : 12

Describe an injection in a class property.

##### Tags

author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Properties

$className : string|null
  Use for injecting in properties of parent classes: the class name must be the name of the parent class because private properties can be attached to the parent classes, not the one we are resolving.
$propertyName : string
$value : mixed
  Value that should be injected in the property.

#### Methods

__construct() : mixed
getClassName() : string|null
getPropertyName() : string
getValue() : mixed
replaceNestedDefinition() : void

### Properties

#### $className

PropertyInjection.php : 26

Use for injecting in properties of parent classes: the class name must be the name of the parent class because private properties can be attached to the parent classes, not the one we are resolving.

`private string|null $className`

#### $propertyName

PropertyInjection.php : 14
`private string $propertyName`

#### $value

PropertyInjection.php : 19

Value that should be injected in the property.

`private mixed $value`

### Methods

#### __construct()

PropertyInjection.php : 32
`public __construct(string $propertyName, mixed $value[, string|null $className = null ]) : mixed`

##### Parameters

$propertyName : string

  Property name

$value : mixed

  Value that should be injected in the property

$className : string|null = null

#### getClassName()

PropertyInjection.php : 52
`public getClassName() : string|null`

##### Return values

string|null

#### getPropertyName()

PropertyInjection.php : 39
`public getPropertyName() : string`

##### Return values

string

#### getValue()

PropertyInjection.php : 47
`public getValue() : mixed`

##### Return values

mixed —

Value that should be injected in the property

#### replaceNestedDefinition()

PropertyInjection.php : 57
`public replaceNestedDefinition(callable $replacer) : void`

##### Parameters

$replacer : callable

## Search results