$elements
$elements :
__construct(\Symfony\Component\PropertyAccess\PropertyPathInterface|string|null $path = null)
Creates a new property path builder.
\Symfony\Component\PropertyAccess\PropertyPathInterface|string|null | $path | The path to initially store in the builder. Optional. |
append(\Symfony\Component\PropertyAccess\PropertyPathInterface|string $path, integer $offset, integer $length)
Appends a (sub-) path to the current path.
\Symfony\Component\PropertyAccess\PropertyPathInterface|string | $path | The path to append |
integer | $offset | The offset where the appended piece starts in $path |
integer | $length | The length of the appended piece If 0, the full path is appended |
replace(integer $offset, integer $length, \Symfony\Component\PropertyAccess\PropertyPathInterface|string $path, integer $pathOffset, integer $pathLength)
Replaces a sub-path by a different (sub-) path.
integer | $offset | The offset at which to replace |
integer | $length | The length of the piece to replace |
\Symfony\Component\PropertyAccess\PropertyPathInterface|string | $path | The path to insert |
integer | $pathOffset | The offset where the inserted piece starts in $path |
integer | $pathLength | The length of the inserted piece If 0, the full path is inserted |
If the offset is invalid
replaceByIndex(integer $offset, string $name = null)
Replaces a property element by an index element.
integer | $offset | The offset at which to replace |
string | $name | The new name of the element. Optional |
If the offset is invalid
replaceByProperty(integer $offset, string $name = null)
Replaces an index element by a property element.
integer | $offset | The offset at which to replace |
string | $name | The new name of the element. Optional |
If the offset is invalid
getPropertyPath() : \Symfony\Component\PropertyAccess\PropertyPathInterface
Returns the current property path.
The constructed property path
resize(integer $offset, integer $cutLength, integer $insertionLength)
Resizes the path so that a chunk of length $cutLength is removed at $offset and another chunk of length $insertionLength can be inserted.
integer | $offset | The offset where the removed chunk starts |
integer | $cutLength | The length of the removed chunk |
integer | $insertionLength | The length of the inserted chunk |