Reference
in package
implements
Definition, SelfResolvingDefinition
Represents a reference to another entry.
Tags
Table of Contents
Interfaces
- Definition
- SelfResolvingDefinition
- Describes a definition that can resolve itself.
Properties
- $name : string
- Entry name.
- $targetEntryName : string
Methods
- __construct() : mixed
- __toString() : string
- getName() : string
- getTargetEntryName() : string
- isResolvable() : bool
- Check if a definition can be resolved.
- replaceNestedDefinitions() : void
- resolve() : mixed
- Resolve the definition and return the resulting value.
- setName() : void
Properties
$name
Entry name.
private
string
$name
= ''
$targetEntryName
private
string
$targetEntryName
Methods
__construct()
public
__construct(string $targetEntryName) : mixed
Parameters
- $targetEntryName : string
-
Name of the target entry
__toString()
public
__toString() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetTargetEntryName()
public
getTargetEntryName() : string
Return values
stringisResolvable()
Check if a definition can be resolved.
public
isResolvable(ContainerInterface $container) : bool
Parameters
- $container : ContainerInterface
Return values
boolreplaceNestedDefinitions()
public
replaceNestedDefinitions(callable $replacer) : void
Parameters
- $replacer : callable
resolve()
Resolve the definition and return the resulting value.
public
resolve(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
setName()
public
setName(string $name) : void
Parameters
- $name : string