class PropertyPathBuilder
| __construct(PropertyPathInterface|string|null $path = null) Creates a new property path builder. | ||
| 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. | |
| PropertyPathInterface | getPropertyPath() Returns the current property path. | |
| string | __toString() Returns the current property path as string. |
Creates a new property path builder.
| PropertyPathInterface|string|null | $path | The path to initially store in the builder. Optional. |
Appends a (sub-) path to the current path.
| PropertyPathInterface|string | $path | The path to append |
| int | $offset | The offset where the appended piece starts in $path |
| int | $length | The length of the appended piece If 0, the full path is appended |
Appends an index element to the current path.
| string | $name | The name of the appended index |
Appends a property element to the current path.
| string | $name | The name of the appended property |
Removes elements from the current path.
| int | $offset | The offset at which to remove |
| int | $length | The length of the removed piece |
| OutOfBoundsException | if offset is invalid |
Replaces a sub-path by a different (sub-) path.
| int | $offset | The offset at which to replace |
| int | $length | The length of the piece to replace |
| PropertyPathInterface|string | $path | The path to insert |
| int | $pathOffset | The offset where the inserted piece starts in $path |
| int | $pathLength | The length of the inserted piece If 0, the full path is inserted |
| OutOfBoundsException | If the offset is invalid |
Replaces a property element by an index element.
| int | $offset | The offset at which to replace |
| string | $name | The new name of the element. Optional |
| OutOfBoundsException | If the offset is invalid |
Replaces an index element by a property element.
| int | $offset | The offset at which to replace |
| string | $name | The new name of the element. Optional |
| OutOfBoundsException | If the offset is invalid |
Returns the length of the current path.
| int | The path length |
Returns the current property path.
| PropertyPathInterface | The constructed property path |
Returns the current property path as string.
| string | The property path as string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/PropertyAccess/PropertyPathBuilder.html