ServiceReferenceGraphEdge
in package
Represents an edge in your service graph.
Value is typically a reference.
Tags
Table of Contents
- $byConstructor : mixed
- $destNode : mixed
- $lazy : mixed
- $sourceNode : mixed
- $value : mixed
- $weak : mixed
- __construct() : mixed
- getDestNode() : ServiceReferenceGraphNode
- Returns the destination node.
- getSourceNode() : ServiceReferenceGraphNode
- Returns the source node.
- getValue() : mixed
- Returns the value of the edge.
- isLazy() : bool
- Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.
- isReferencedByConstructor() : bool
- Returns true if the edge links with a constructor argument.
- isWeak() : bool
- Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.
Properties
$byConstructor
private
mixed
$byConstructor
$destNode
private
mixed
$destNode
$lazy
private
mixed
$lazy
$sourceNode
private
mixed
$sourceNode
$value
private
mixed
$value
$weak
private
mixed
$weak
Methods
__construct()
public
__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode[, mixed $value = null ][, bool $lazy = false ][, bool $weak = false ][, bool $byConstructor = false ]) : mixed
Parameters
- $sourceNode : ServiceReferenceGraphNode
- $destNode : ServiceReferenceGraphNode
- $value : mixed = null
- $lazy : bool = false
- $weak : bool = false
- $byConstructor : bool = false
Return values
mixed —getDestNode()
Returns the destination node.
public
getDestNode() : ServiceReferenceGraphNode
Return values
ServiceReferenceGraphNode —getSourceNode()
Returns the source node.
public
getSourceNode() : ServiceReferenceGraphNode
Return values
ServiceReferenceGraphNode —getValue()
Returns the value of the edge.
public
getValue() : mixed
Return values
mixed —isLazy()
Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.
public
isLazy() : bool
Return values
bool —isReferencedByConstructor()
Returns true if the edge links with a constructor argument.
public
isReferencedByConstructor() : bool
Return values
bool —isWeak()
Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.
public
isWeak() : bool