Symfony\Component\PropertyAccess\PropertyPathBuilder::replaceByIndex
Replaces a property element by an index element.
Signature
public function replaceByIndex(integer
$offset,
[string
$name = null] )
Parameters
$offset
— integer- The offset at which to replace
$name
— string- The new name of the element. Optional.
Errors/Exceptions
-
OutOfBoundsException
- If the offset is invalid