public function remove(int
$offset, int
$length = 1
) { if (!
isset($this->elements
[$offset])) { throw new OutOfBoundsException(sprintf('The offset "%s" is not within the property path.',
$offset));
} $this->
resize($offset,
$length, 0
);
} /**
* Replaces a sub-path by a different (sub-) path.
*
* @param int $pathOffset The offset where the inserted piece starts in $path
* @param int $pathLength The length of the inserted piece; if 0, the full path is inserted
*
* @return void
*
* @throws OutOfBoundsException If the offset is invalid
*/