public function replace($offset, $replacement)
    {
        if (! array_key_exists($offset, $this->identifierParts)) {
            throw new OutOfBoundsException(
                'No identifier part exists at the specified position: ' .
                $offset
            );
        }

        $this->identifierParts[$offset] = $replacement;

        return $this;
    }
public function replace($offset, $replacement)
    {
        if (! array_key_exists($offset, $this->identifierParts)) {
            throw new OutOfBoundsException(
                'No identifier part exists at the specified position: ' .
                $offset
            );
        }

        $this->identifierParts[$offset] = $replacement;

        return $this;
    }
public function replace ( $ offset , $ replacement ) { if ( ! array_key_exists ( $ offset , $ this -> identifierParts ) ) { throw new OutOfBoundsException ( 'No identifier part exists at the specified position: ' . $ offset ) ; } $ this -> identifierParts [ $ offset ] = $ replacement ; return $ this ; }
Replace an identifier part at the specified position

@param int    $offset      The index of the identifier part to rename
@param string $replacement The value to rename the specified identifier
part to

@return $this The current instance of this class for method chaining

@throws OutOfBoundsException If no identifier part exists for the
specified index
Replace an identifier part at the specified position