|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Public Member Functions | |
| __construct (private mixed $value,) | |
| __toString () | |
| Definitions can be cast to string for debugging information. | |
| getName () | |
| Returns the name of the entry in the container. | |
| getValue () | |
| isResolvable (ContainerInterface $container) | |
| Check if a definition can be resolved. | |
| replaceNestedDefinitions (callable $replacer) | |
| Apply a callable that replaces the definitions nested in this definition. | |
| resolve (ContainerInterface $container) | |
| Resolve the definition and return the resulting value. | |
| setName (string $name) | |
| Set the name of the entry in the container. | |
| DI\Definition\ValueDefinition::__toString | ( | ) |
Definitions can be cast to string for debugging information.
Implements DI\Definition\Definition.
| DI\Definition\ValueDefinition::getName | ( | ) |
Returns the name of the entry in the container.
Implements DI\Definition\Definition.
| DI\Definition\ValueDefinition::isResolvable | ( | ContainerInterface | $container | ) |
Check if a definition can be resolved.
Implements DI\Definition\SelfResolvingDefinition.
| DI\Definition\ValueDefinition::replaceNestedDefinitions | ( | callable | $replacer | ) |
Apply a callable that replaces the definitions nested in this definition.
Implements DI\Definition\Definition.
| DI\Definition\ValueDefinition::resolve | ( | ContainerInterface | $container | ) |
Resolve the definition and return the resulting value.
Implements DI\Definition\SelfResolvingDefinition.
| DI\Definition\ValueDefinition::setName | ( | string | $name | ) |
Set the name of the entry in the container.
Implements DI\Definition\Definition.