PropertyInjection
in package
Describe an injection in a class property.
Tags
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
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
private
string
$propertyName
$value
Value that should be injected in the property.
private
mixed
$value
Methods
__construct()
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()
public
getClassName() : string|null
Return values
string|nullgetPropertyName()
public
getPropertyName() : string
Return values
stringgetValue()
public
getValue() : mixed
Return values
mixed —Value that should be injected in the property
replaceNestedDefinition()
public
replaceNestedDefinition(callable $replacer) : void
Parameters
- $replacer : callable