ServiceReferenceGraphEdge::getValue()

string getValue() Returns the value of the edge. Return Value string

ServiceReferenceGraphEdge::getSourceNode()

ServiceReferenceGraphNode getSourceNode() Returns the source node. Return Value ServiceReferenceGraphNode

ServiceReferenceGraphEdge::getDestNode()

ServiceReferenceGraphNode getDestNode() Returns the destination node. Return Value ServiceReferenceGraphNode

ServiceReferenceGraphEdge

class ServiceReferenceGraphEdge Represents an edge in your service graph. Value is typically a reference. Methods __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, string $value = null) string getValue() Returns the value of the edge. ServiceReferenceGraphNode getSourceNode() Returns the source node. ServiceReferenceGraphNode getDestNode() Returns the destination node. Details __construct(ServiceRefere

ServiceReferenceGraph::hasNode()

bool hasNode(string $id) Checks if the graph has a specific node. Parameters string $id Id to check Return Value bool

ServiceReferenceGraph::getNodes()

ServiceReferenceGraphNode[] getNodes() Returns all nodes. Return Value ServiceReferenceGraphNode[] An array of all ServiceReferenceGraphNode objects

ServiceReferenceGraph::getNode()

ServiceReferenceGraphNode getNode(string $id) Gets a node by identifier. Parameters string $id The id to retrieve Return Value ServiceReferenceGraphNode The node matching the supplied identifier Exceptions InvalidArgumentException if no node matches the supplied identifier

ServiceReferenceGraph::connect()

connect(string $sourceId, string $sourceValue, string $destId, string $destValue = null, string $reference = null) Connects 2 nodes together in the Graph. Parameters string $sourceId string $sourceValue string $destId string $destValue string $reference

ServiceReferenceGraph::clear()

clear() Clears all nodes.

ServiceReferenceGraph

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 bool 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 $sourceV