Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
DI\Definition\Reference Class Reference
Inheritance diagram for DI\Definition\Reference:
DI\Definition\Definition DI\Definition\SelfResolvingDefinition DI\Factory\RequestedEntry

Public Member Functions

 __construct (private string $targetEntryName,)
 
 __toString ()
 Definitions can be cast to string for debugging information.
 
 getName ()
 Returns the name of the entry in the container.
 
 getTargetEntryName ()
 
 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.
 

Constructor & Destructor Documentation

◆ __construct()

DI\Definition\Reference::__construct ( private string $targetEntryName)
Parameters
string$targetEntryNameName of the target entry

Member Function Documentation

◆ __toString()

DI\Definition\Reference::__toString ( )

Definitions can be cast to string for debugging information.

Implements DI\Definition\Definition.

◆ getName()

DI\Definition\Reference::getName ( )

Returns the name of the entry in the container.

Implements DI\Definition\Definition.

◆ isResolvable()

DI\Definition\Reference::isResolvable ( ContainerInterface $container)

Check if a definition can be resolved.

Implements DI\Definition\SelfResolvingDefinition.

◆ replaceNestedDefinitions()

DI\Definition\Reference::replaceNestedDefinitions ( callable $replacer)

Apply a callable that replaces the definitions nested in this definition.

Implements DI\Definition\Definition.

◆ resolve()

DI\Definition\Reference::resolve ( ContainerInterface $container)

Resolve the definition and return the resulting value.

Implements DI\Definition\SelfResolvingDefinition.

◆ setName()

DI\Definition\Reference::setName ( string $name)

Set the name of the entry in the container.

Implements DI\Definition\Definition.


The documentation for this class was generated from the following file: