|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Public Member Functions | |
| __construct (string $name, callable|array|string $factory, array $parameters=[]) | |
| __toString () | |
| Definitions can be cast to string for debugging information. | |
| getCallable () | |
| getName () | |
| Returns the name of the entry in the container. | |
| getParameters () | |
| 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\FactoryDefinition::__construct | ( | string | $name, |
| callable|array|string | $factory, | ||
| array | $parameters = [] ) |
| string | $name | Entry name |
| callable | array | string | $factory | Callable that returns the value associated to the entry name. |
| array | $parameters | Parameters to be passed to the callable |
| DI\Definition\FactoryDefinition::__toString | ( | ) |
Definitions can be cast to string for debugging information.
Implements DI\Definition\Definition.
Reimplemented in DI\Definition\DecoratorDefinition.
| DI\Definition\FactoryDefinition::getCallable | ( | ) |
| callable|array|string | Callable that returns the value associated to the entry name. |
| DI\Definition\FactoryDefinition::getName | ( | ) |
Returns the name of the entry in the container.
Implements DI\Definition\Definition.
| DI\Definition\FactoryDefinition::getParameters | ( | ) |
| array | Array containing the parameters to be passed to the callable, indexed by name. |
| DI\Definition\FactoryDefinition::replaceNestedDefinitions | ( | callable | $replacer | ) |
Apply a callable that replaces the definitions nested in this definition.
Implements DI\Definition\Definition.
Reimplemented in DI\Definition\DecoratorDefinition.
| DI\Definition\FactoryDefinition::setName | ( | string | $name | ) |
Set the name of the entry in the container.
Implements DI\Definition\Definition.