PathNode
extends Node
in package
FinalYes
Path reference. relative=false → resolved from the data root; relative=true → resolved from parentPath (currentPath minus the field name) with levelsUp additional parent ascents. segments are identifier|wildcard|index.
Table of Contents
Properties
Methods
- __construct() : mixed
- Build a path reference.
- toArray() : array<string, mixed>
- Serialize to {type,relative,levelsUp,segments}.
Properties
$levelsUp read-only
public
int
$levelsUp
$relative read-only
public
bool
$relative
$segments read-only
public
array<string|int, mixed>
$segments
Methods
__construct()
Build a path reference.
public
__construct(bool $relative, int $levelsUp, array<int, PathSegment> $segments) : mixed
Parameters
- $relative : bool
- $levelsUp : int
- $segments : array<int, PathSegment>
toArray()
Serialize to {type,relative,levelsUp,segments}.
public
toArray() : array<string, mixed>