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

Public Member Functions

 __toString ()
 Definitions can be cast to string for debugging information.
 
 addMethodInjection (MethodInjection $methodInjection)
 
 addPropertyInjection (PropertyInjection $propertyInjection)
 
 classExists ()
 
 completeConstructorInjection (MethodInjection $injection)
 
 completeFirstMethodInjection (MethodInjection $injection)
 
 getClassName ()
 
 getConstructorInjection ()
 
 getMethodInjections ()
 
 getName ()
 Returns the name of the entry in the container.
 
 getPropertyInjections ()
 
 isInstantiable ()
 
 isLazy ()
 
 replaceNestedDefinitions (callable $replacer)
 Apply a callable that replaces the definitions nested in this definition.
 
 replaceWildcards (array $replacements)
 Replaces all the wildcards in the string with the given replacements.
 
 setClassName (?string $className)
 
 setConstructorInjection (MethodInjection $constructorInjection)
 
 setLazy (bool $lazy=null)
 
 setName (string $name)
 Set the name of the entry in the container.
 

Protected Attributes

string $className = null
 Class name (if null, then the class name is $name).
 
MethodInjection $constructorInjection = null
 
bool $lazy = null
 
MethodInjection[][] array $methodInjections = []
 Method calls.
 
array $propertyInjections = []
 

Member Function Documentation

◆ __toString()

DI\Definition\ObjectDefinition::__toString ( )
inherited

Definitions can be cast to string for debugging information.

Implements DI\Definition\Definition.

◆ getMethodInjections()

DI\Definition\ObjectDefinition::getMethodInjections ( )
inherited
Return values
MethodInjection[]Method injections

◆ getName()

DI\Definition\ObjectDefinition::getName ( )
inherited

Returns the name of the entry in the container.

Implements DI\Definition\Definition.

◆ getPropertyInjections()

DI\Definition\ObjectDefinition::getPropertyInjections ( )
inherited
Return values
PropertyInjection[]Property injections

◆ replaceNestedDefinitions()

DI\Definition\ObjectDefinition::replaceNestedDefinitions ( callable $replacer)
inherited

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

Implements DI\Definition\Definition.

◆ replaceWildcards()

DI\Definition\ObjectDefinition::replaceWildcards ( array $replacements)
inherited

Replaces all the wildcards in the string with the given replacements.

Parameters
string[]$replacements

◆ setName()

DI\Definition\ObjectDefinition::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: