Documentation

PropertyInjection
in package

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

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

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|null

getValue()

public getValue() : mixed
Return values
mixed

Value that should be injected in the property

replaceNestedDefinition()

public replaceNestedDefinition(callable $replacer) : void
Parameters
$replacer : callable

        
On this page

Search results