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

Public Member Functions

 __toString ()
 Definitions can be cast to string for debugging information.
 
 getCallable ()
 
 getDecoratedDefinition ()
 
 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.
 
 setExtendedDefinition (Definition $definition)
 
 setName (string $name)
 Set the name of the entry in the container.
 

Member Function Documentation

◆ __toString()

DI\Definition\DecoratorDefinition::__toString ( )

Definitions can be cast to string for debugging information.

Reimplemented from DI\Definition\FactoryDefinition.

◆ getCallable()

DI\Definition\FactoryDefinition::getCallable ( )
inherited
Return values
callable|array|stringCallable that returns the value associated to the entry name.

◆ getName()

DI\Definition\FactoryDefinition::getName ( )
inherited

Returns the name of the entry in the container.

Implements DI\Definition\Definition.

◆ getParameters()

DI\Definition\FactoryDefinition::getParameters ( )
inherited
Return values
arrayArray containing the parameters to be passed to the callable, indexed by name.

◆ replaceNestedDefinitions()

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

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

Reimplemented from DI\Definition\FactoryDefinition.

◆ setExtendedDefinition()

DI\Definition\DecoratorDefinition::setExtendedDefinition ( Definition $definition)

◆ setName()

DI\Definition\FactoryDefinition::setName ( string $name)
inherited

Set the name of the entry in the container.

Implements DI\Definition\Definition.


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