ServiceReferenceGraphEdge

class ServiceReferenceGraphEdge

Represents an edge in your service graph.

Value is typically a reference.

Methods

__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, mixed $value = null, bool $lazy = false)
string getValue()

Returns the value of the edge.

ServiceReferenceGraphNode getSourceNode()

Returns the source node.

ServiceReferenceGraphNode getDestNode()

Returns the destination node.

bool isLazy()

Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.

Details

__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, mixed $value = null, bool $lazy = false)

Parameters

ServiceReferenceGraphNode $sourceNode
ServiceReferenceGraphNode $destNode
mixed $value
bool $lazy

string getValue()

Returns the value of the edge.

Return Value

string

ServiceReferenceGraphNode getSourceNode()

Returns the source node.

Return Value

ServiceReferenceGraphNode

ServiceReferenceGraphNode getDestNode()

Returns the destination node.

Return Value

ServiceReferenceGraphNode

bool isLazy()

Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.

Return Value

bool