Compiler\ServiceReferenceGraphNode (Component\DependencyInjection)
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphNode
class ServiceReferenceGraphNode
Represents a node in your service graph.
Value is typically a definition, or an alias.
Methods
__construct(string $id, mixed $value) Constructor. | ||
addInEdge(ServiceReferenceGraphEdge $edge) Adds an in edge to this node. | ||
addOutEdge(ServiceReferenceGraphEdge $edge) Adds an out edge to this node. | ||
bool | isAlias() Checks if the value of this node is an Alias. | |
bool | isDefinition() Checks if the value of this node is a Definition. | |
string | getId() Returns the identifier. | |
array | getInEdges() Returns the in edges. | |
array | getOutEdges() Returns the out edges. | |
mixed | getValue() Returns the value of this Node. |
Details
public __construct(string $id, mixed $value)
Constructor.
public addInEdge(ServiceReferenceGraphEdge $edge)
Adds an in edge to this node.
public addOutEdge(ServiceReferenceGraphEdge $edge)
Adds an out edge to this node.
public bool isAlias()
Checks if the value of this node is an Alias.
public bool isDefinition()
Checks if the value of this node is a Definition.
public string getId()
Returns the identifier.
public array getInEdges()
Returns the in edges.
public array getOutEdges()
Returns the out edges.
public mixed getValue()
Returns the value of this Node.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraphNode.html