PropertyPathBuilder
class PropertyPathBuilder
Methods
Appends a (sub-) path to the current path.
Appends an index element to the current path.
Appends a property element to the current path.
Removes elements from the current path.
Replaces a sub-path by a different (sub-) path.
Replaces a property element by an index element.
Replaces an index element by a property element.
Returns the length of the current path.
Returns the current property path.
Returns the current property path as string.
Details
at line line 37
__construct(null|PropertyPathInterface|string $path = null)
Creates a new property path builder.
at line line 53
append(PropertyPathInterface|string $path, int $offset, int $length)
Appends a (sub-) path to the current path.
at line line 76
appendIndex(string $name)
Appends an index element to the current path.
at line line 87
appendProperty(string $name)
Appends a property element to the current path.
at line line 101
remove(int $offset, int $length = 1)
Removes elements from the current path.
at line line 123
replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset, int $pathLength)
Replaces a sub-path by a different (sub-) path.
at line line 155
replaceByIndex(int $offset, string $name = null)
Replaces a property element by an index element.
at line line 176
replaceByProperty(int $offset, string $name = null)
Replaces an index element by a property element.
at line line 194
int
getLength()
Returns the length of the current path.
at line line 204
PropertyPathInterface
getPropertyPath()
Returns the current property path.
at line line 216
string
__toString()
Returns the current property path as string.