private function getElementMovedByOffset($offset)
    {
        if (!is_int($this->key())) {
            throw new LogicException(sprintf("Can't get element moved by %s as current key is not numeric", $offset));
        }
        $oldPosition = $this->key();
        $newPosition = $oldPosition + $offset;
        $this->seek($newPosition);
        if (!is_int($this->key())) {
            throw new LogicException(sprintf("Can't get element moved by %s as next key is not numeric", $offset));
        }
        $value = $this->current();
        $this->seek($oldPosition);
        return $value;
    }
private function getElementMovedByOffset($offset)
    {
        if (!is_int($this->key())) {
            throw new LogicException(sprintf("Can't get element moved by %s as current key is not numeric", $offset));
        }
        $oldPosition = $this->key();
        $newPosition = $oldPosition + $offset;
        $this->seek($newPosition);
        if (!is_int($this->key())) {
            throw new LogicException(sprintf("Can't get element moved by %s as next key is not numeric", $offset));
        }
        $value = $this->current();
        $this->seek($oldPosition);
        return $value;
    }
private function getElementMovedByOffset ( $ offset ) { if ( ! is_int ( $ this -> key ( ) ) ) { throw new LogicException ( sprintf ( "Can't get element moved by %s as current key is not numeric" , $ offset ) ) ; } $ oldPosition = $ this -> key ( ) ; $ newPosition = $ oldPosition + $ offset ; $ this -> seek ( $ newPosition ) ; if ( ! is_int ( $ this -> key ( ) ) ) { throw new LogicException ( sprintf ( "Can't get element moved by %s as next key is not numeric" , $ offset ) ) ; } $ value = $ this -> current ( ) ; $ this -> seek ( $ oldPosition ) ; return $ value ; }
Returns element moved by offset from the current key

@param integer $offset offset

@return Entity
Returns element moved by offset from the current key