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

bool
equals(NodePath $other)

No description

string
jsonSerialize()

No description

__toString()

No description

Details

static NodePath fromString(string $path)

No description

Parameters

string $path

Return Value

NodePath

static NodePath fromPathSegments(array $pathSegments)

No description

Parameters

array $pathSegments

Return Value

NodePath

bool isRoot()

No description

Return Value

bool

bool isAbsolute()

No description

Return Value

bool

NodePath appendPathSegment(NodeName $nodeName)

IMMUTABLE function to create a new NodePath by appending a path segment. Returns a NEW NodePath object

Parameters

NodeName $nodeName

Return Value

NodePath

array getParts()

No description

Return Value

array

int getDepth()

No description

Return Value

int

bool equals(NodePath $other)

No description

Parameters

NodePath $other

Return Value

bool

string jsonSerialize()

No description

Return Value

string

__toString()

No description