$elements
$elements
__construct(\Symfony\Component\PropertyAccess\PropertyPathInterface|string|null $path = null) : mixed
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, int $offset, int $length) : mixed
Appends a (sub-) path to the current path.
\Symfony\Component\PropertyAccess\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 |
replace(int $offset, int $length, \Symfony\Component\PropertyAccess\PropertyPathInterface|string $path, int $pathOffset, int $pathLength) : mixed
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 |
\Symfony\Component\PropertyAccess\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 |
If the offset is invalid
replaceByIndex(int $offset, string $name = null) : mixed
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 |
If the offset is invalid
replaceByProperty(int $offset, string $name = null) : mixed
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 |
If the offset is invalid