Documentation

ServiceReferenceGraphEdge
in package

Represents an edge in your service graph.

Value is typically a reference.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

Properties

$byConstructor  : bool
$byMultiUseArgument  : bool
$destNode  : ServiceReferenceGraphNode
$lazy  : bool
$sourceNode  : ServiceReferenceGraphNode
$value  : mixed
$weak  : bool

Methods

__construct()  : mixed
getDestNode()  : ServiceReferenceGraphNode
Returns the destination node.
getSourceNode()  : ServiceReferenceGraphNode
Returns the source node.
getValue()  : mixed
Returns the value of the edge.
isFromMultiUseArgument()  : bool
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

Methods

__construct()

public __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode[, mixed $value = null ][, bool $lazy = false ][, bool $weak = false ][, bool $byConstructor = false ][, bool $byMultiUseArgument = false ]) : mixed
Parameters
$sourceNode : ServiceReferenceGraphNode
$destNode : ServiceReferenceGraphNode
$value : mixed = null
$lazy : bool = false
$weak : bool = false
$byConstructor : bool = false
$byMultiUseArgument : bool = false

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
Return values
bool

        
On this page

Search results