NodePath
final class NodePath implements JsonSerializable (View source)
The node path is a list of NodeNames. It can be either absolute or relative.
It describes the hierarchy path of a node to a root node in a subgraph.
Methods
static NodePath
fromString(string $path)
No description
static NodePath
fromPathSegments(array $pathSegments)
No description
bool
isRoot()
No description
bool
isAbsolute()
No description
appendPathSegment(NodeName $nodeName)
IMMUTABLE function to create a new NodePath by appending a path segment. Returns a NEW NodePath object
array
getParts()
No description
int
getDepth()
No description
string
jsonSerialize()
No description
__toString()
No description
Details
static NodePath
fromString(string $path)
No description
static NodePath
fromPathSegments(array $pathSegments)
No description
bool
isRoot()
No description
bool
isAbsolute()
No description
NodePath
appendPathSegment(NodeName $nodeName)
IMMUTABLE function to create a new NodePath by appending a path segment. Returns a NEW NodePath object
array
getParts()
No description
int
getDepth()
No description
bool
equals(NodePath $other)
No description
string
jsonSerialize()
No description
__toString()
No description