class ServiceReferenceGraph
This is a directed graph of your services.
This information can be used by your compiler passes instead of collecting
it themselves which improves performance quite a lot.
Methods
|
__construct()
Constructor. |
||
| Boolean |
hasNode(string $id)
Checks if the graph has a specific node. |
|
| ServiceReferenceGraphNode |
getNode(string $id)
Gets a node by identifier. |
|
| ServiceReferenceGraphNode[] |
getNodes()
Returns all nodes. |
|
|
clear()
Clears all nodes. |
||
|
connect(string $sourceId, string $sourceValue, string $destId, string $destValue = null, string $reference = null)
Connects 2 nodes together in the Graph. |
Details
at line 34
public
__construct()
Constructor.
at line 46
public Boolean
hasNode(string $id)
Checks if the graph has a specific node.
at line 60
public ServiceReferenceGraphNode
getNode(string $id)
Gets a node by identifier.
at line 74
public ServiceReferenceGraphNode[]
getNodes()
Returns all nodes.
at line 82
public
clear()
Clears all nodes.
at line 96
public
connect(string $sourceId, string $sourceValue, string $destId, string $destValue = null, string $reference = null)
Connects 2 nodes together in the Graph.