PropertyPathBuilder::replace()

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

OutOfBoundsException If the offset is invalid
doc_Symfony
2016-10-28 06:28:02
Comments
Leave a Comment

Please login to continue.