|
| | __construct (string $name, string $className=null) |
| |
| | __toString () |
| | Definitions can be cast to string for debugging information.
|
| |
|
| addMethodInjection (MethodInjection $methodInjection) |
| |
|
| addPropertyInjection (PropertyInjection $propertyInjection) |
| |
|
| classExists () |
| |
|
| completeConstructorInjection (MethodInjection $injection) |
| |
|
| completeFirstMethodInjection (MethodInjection $injection) |
| |
|
| getClassName () |
| |
|
| getConstructorInjection () |
| |
| | getMethodInjections () |
| |
| | getName () |
| | Returns the name of the entry in the container.
|
| |
| | getPropertyInjections () |
| |
|
| isInstantiable () |
| |
|
| isLazy () |
| |
| | replaceNestedDefinitions (callable $replacer) |
| | Apply a callable that replaces the definitions nested in this definition.
|
| |
| | replaceWildcards (array $replacements) |
| | Replaces all the wildcards in the string with the given replacements.
|
| |
|
| setClassName (?string $className) |
| |
|
| setConstructorInjection (MethodInjection $constructorInjection) |
| |
|
| setLazy (bool $lazy=null) |
| |
| | setName (string $name) |
| | Set the name of the entry in the container.
|
| |
|
|
string | $className = null |
| | Class name (if null, then the class name is $name).
|
| |
|
MethodInjection | $constructorInjection = null |
| |
|
bool | $lazy = null |
| |
|
MethodInjection[][] array | $methodInjections = [] |
| | Method calls.
|
| |
|
array | $propertyInjections = [] |
| |
◆ __construct()
| DI\Definition\ObjectDefinition::__construct |
( |
string | $name, |
|
|
string | $className = null ) |
◆ __toString()
| DI\Definition\ObjectDefinition::__toString |
( |
| ) |
|
◆ getMethodInjections()
| DI\Definition\ObjectDefinition::getMethodInjections |
( |
| ) |
|
- Return values
-
| MethodInjection[] | Method injections |
◆ getName()
| DI\Definition\ObjectDefinition::getName |
( |
| ) |
|
◆ getPropertyInjections()
| DI\Definition\ObjectDefinition::getPropertyInjections |
( |
| ) |
|
- Return values
-
| PropertyInjection[] | Property injections |
◆ replaceNestedDefinitions()
| DI\Definition\ObjectDefinition::replaceNestedDefinitions |
( |
callable | $replacer | ) |
|
◆ replaceWildcards()
| DI\Definition\ObjectDefinition::replaceWildcards |
( |
array | $replacements | ) |
|
Replaces all the wildcards in the string with the given replacements.
- Parameters
-
◆ setName()
| DI\Definition\ObjectDefinition::setName |
( |
string | $name | ) |
|
The documentation for this class was generated from the following file:
- lib/php-di/php-di/src/Definition/ObjectDefinition.php