class PropertyPathBuilder
Methods
| __construct(null|PropertyPathInterface|string $path = null) Creates a new property path builder. | ||
| append(PropertyPathInterface|string $path, int $offset, int $length) 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, int $pathLength) 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. | |
| PropertyPathInterface | getPropertyPath() Returns the current property path. | |
| string | __toString() Returns the current property path as string. |
Details
__construct(null|PropertyPathInterface|string $path = null)
Creates a new property path builder.
append(PropertyPathInterface|string $path, int $offset, int $length)
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, int $pathLength)
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.
PropertyPathInterface getPropertyPath()
Returns the current property path.
string __toString()
Returns the current property path as string.
Please login to continue.