class ServiceReferenceGraphEdge

Represents an edge in your service graph.

Value is typically a reference.

Methods

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

No description

mixed
getValue()

Returns the value of the edge.

getSourceNode()

Returns the source node.

getDestNode()

Returns the destination node.

bool
isLazy()

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

bool
isWeak()

Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.

bool
isReferencedByConstructor()

Returns true if the edge links with a constructor argument.

Details

at line 30
__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, bool $lazy = false, bool $weak = false, bool $byConstructor = false)

Parameters

ServiceReferenceGraphNode $sourceNode
ServiceReferenceGraphNode $destNode
$value
bool $lazy
bool $weak
bool $byConstructor

at line 45
mixed getValue()

Returns the value of the edge.

Return Value

mixed

at line 55
ServiceReferenceGraphNode getSourceNode()

Returns the source node.

at line 65
ServiceReferenceGraphNode getDestNode()

Returns the destination node.

at line 75
bool isLazy()

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

Return Value

bool

at line 85
bool isWeak()

Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.

Return Value

bool

at line 95
bool isReferencedByConstructor()

Returns true if the edge links with a constructor argument.

Return Value

bool