|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Public Member Functions | |
| __construct (private object $instance, private ObjectDefinition $objectDefinition,) | |
| __toString () | |
| Definitions can be cast to string for debugging information. | |
| getInstance () | |
| getName () | |
| Returns the name of the entry in the container. | |
| getObjectDefinition () | |
| replaceNestedDefinitions (callable $replacer) | |
| Apply a callable that replaces the definitions nested in this definition. | |
| setName (string $name) | |
| Set the name of the entry in the container. | |
| DI\Definition\InstanceDefinition::__construct | ( | private object | $instance, |
| private ObjectDefinition | $objectDefinition ) |
| object | $instance | Instance on which to inject dependencies. |
| DI\Definition\InstanceDefinition::__toString | ( | ) |
Definitions can be cast to string for debugging information.
Implements DI\Definition\Definition.
| DI\Definition\InstanceDefinition::getName | ( | ) |
Returns the name of the entry in the container.
Implements DI\Definition\Definition.
| DI\Definition\InstanceDefinition::replaceNestedDefinitions | ( | callable | $replacer | ) |
Apply a callable that replaces the definitions nested in this definition.
Implements DI\Definition\Definition.
| DI\Definition\InstanceDefinition::setName | ( | string | $name | ) |
Set the name of the entry in the container.
Implements DI\Definition\Definition.