class ServiceReferenceGraphEdge

Represents an edge in your service graph.

Value is typically a reference.

Methods

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

No description

string
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.

Details

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

Parameters

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

at line line 50
string getValue()

Returns the value of the edge.

Return Value

string

at line line 60
ServiceReferenceGraphNode getSourceNode()

Returns the source node.

at line line 70
ServiceReferenceGraphNode getDestNode()

Returns the destination node.

at line line 80
bool isLazy()

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

Return Value

bool

at line line 90
bool isWeak()

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

Return Value

bool