Symfony\Component\PropertyAccess\PropertyPathBuilder::replace
Replaces a sub-path by a different (sub-) path.
Signature
public function replace(integer
$offset,
[integer
$length = 0,
[PropertyPathInterface|string
$path = 0,
[integer
$pathOffset = 0,
[integer
$pathLength = 0]]]] )
Parameters
$offset
—
integer
- The offset at which to replace.
$length
—
integer
- The length of the piece to replace.
$path
—
object
- The path to insert.
$pathOffset
—
integer
- The offset where the inserted piece
starts in $path.
$pathLength
—
integer
- The length of the inserted piece.
If 0, the full path is inserted.
Errors/Exceptions
-
OutOfBoundsException
- If the offset is invalid