public function offset($offset)
    {
        if (intval($offset) != $offset) {
            throw new \Exception('The offset must be an integer');
        }

        $this->offset = (int) $offset;

        return $this;
    }