PropertyPathBuilder
class PropertyPathBuilder
Methods
append(PropertyPathInterface|string $path, int $offset = 0, int $length = 0)
Appends a (sub-) path to the current path.
appendIndex(string $name)
Appends an index element to the current path.
appendProperty(string $name)
Appends a property element to the current path.
remove(int $offset, int $length = 1)
Removes elements from the current path.
replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset = 0, int $pathLength = 0)
Replaces a sub-path by a different (sub-) path.
replaceByIndex(int $offset, string $name = null)
Replaces a property element by an index element.
replaceByProperty(int $offset, string $name = null)
Replaces an index element by a property element.
int
getLength()
Returns the length of the current path.
getPropertyPath()
Returns the current property path.
string
__toString()
Returns the current property path as string.
Details
append(PropertyPathInterface|string $path, int $offset = 0, int $length = 0)
Appends a (sub-) path to the current path.
replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset = 0, int $pathLength = 0)
Replaces a sub-path by a different (sub-) path.