class ServiceReferenceGraphNode
Represents a node in your service graph.
Value is typically a definition, or an alias.
@author Johannes M. Schmitt <schmittjoh@gmail.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphNode
Expanded class hierarchy of ServiceReferenceGraphNode
1 file declares its use of ServiceReferenceGraphNode
- PhpDumper.php in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php
File
-
vendor/
symfony/ dependency-injection/ Compiler/ ServiceReferenceGraphNode.php, line 24
Namespace
Symfony\Component\DependencyInjection\CompilerView source
class ServiceReferenceGraphNode {
private array $inEdges = [];
private array $outEdges = [];
public function __construct(string $id, mixed $value) {
}
public function addInEdge(ServiceReferenceGraphEdge $edge) : void {
$this->inEdges[] = $edge;
}
public function addOutEdge(ServiceReferenceGraphEdge $edge) : void {
$this->outEdges[] = $edge;
}
/**
* Checks if the value of this node is an Alias.
*/
public function isAlias() : bool {
return $this->value instanceof Alias;
}
/**
* Checks if the value of this node is a Definition.
*/
public function isDefinition() : bool {
return $this->value instanceof Definition;
}
/**
* Returns the identifier.
*/
public function getId() : string {
return $this->id;
}
/**
* Returns the in edges.
*
* @return ServiceReferenceGraphEdge[]
*/
public function getInEdges() : array {
return $this->inEdges;
}
/**
* Returns the out edges.
*
* @return ServiceReferenceGraphEdge[]
*/
public function getOutEdges() : array {
return $this->outEdges;
}
/**
* Returns the value of this Node.
*/
public function getValue() : mixed {
return $this->value;
}
/**
* Clears all edges.
*/
public function clear() : void {
$this->inEdges = $this->outEdges = [];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ServiceReferenceGraphNode::$inEdges | private | property | |
ServiceReferenceGraphNode::$outEdges | private | property | |
ServiceReferenceGraphNode::addInEdge | public | function | |
ServiceReferenceGraphNode::addOutEdge | public | function | |
ServiceReferenceGraphNode::clear | public | function | Clears all edges. |
ServiceReferenceGraphNode::getId | public | function | Returns the identifier. |
ServiceReferenceGraphNode::getInEdges | public | function | Returns the in edges. |
ServiceReferenceGraphNode::getOutEdges | public | function | Returns the out edges. |
ServiceReferenceGraphNode::getValue | public | function | Returns the value of this Node. |
ServiceReferenceGraphNode::isAlias | public | function | Checks if the value of this node is an Alias. |
ServiceReferenceGraphNode::isDefinition | public | function | Checks if the value of this node is a Definition. |
ServiceReferenceGraphNode::__construct | public | function |