replace(int $offset, int $length, PropertyPathInterface|string $path, int $pathOffset, int $pathLength)
Replaces a sub-path by a different (sub-) path.
Parameters 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. Exceptions OutOfBoundsExcep