class ServiceReferenceGraphNode

Represents a node in your service graph.

Value is typically a definition, or an alias.

Methods

__construct(string $id, mixed $value)

No description

addInEdge(ServiceReferenceGraphEdge $edge)

No description

addOutEdge(ServiceReferenceGraphEdge $edge)

No description

bool
isAlias()

Checks if the value of this node is an Alias.

bool
isDefinition()

Checks if the value of this node is a Definition.

string
getId()

Returns the identifier.

array
getInEdges()

Returns the in edges.

array
getOutEdges()

Returns the out edges.

mixed
getValue()

Returns the value of this Node.

clear()

Clears all edges.

Details

at line 35
__construct(string $id, mixed $value)

Parameters

string $id The node identifier
mixed $value The node value

at line 41
addInEdge(ServiceReferenceGraphEdge $edge)

Parameters

ServiceReferenceGraphEdge $edge

at line 46
addOutEdge(ServiceReferenceGraphEdge $edge)

Parameters

ServiceReferenceGraphEdge $edge

at line 56
bool isAlias()

Checks if the value of this node is an Alias.

Return Value

bool True if the value is an Alias instance

at line 66
bool isDefinition()

Checks if the value of this node is a Definition.

Return Value

bool True if the value is a Definition instance

at line 76
string getId()

Returns the identifier.

Return Value

string

at line 86
array getInEdges()

Returns the in edges.

Return Value

array The in ServiceReferenceGraphEdge array

at line 96
array getOutEdges()

Returns the out edges.

Return Value

array The out ServiceReferenceGraphEdge array

at line 106
mixed getValue()

Returns the value of this Node.

Return Value

mixed The value

at line 114
clear()

Clears all edges.