public function limit(int $limit, int $offset = null)
    {
        $this->changed = true;
        $this->limit = $limit;

        if ($offset !== null) {
            $this->offset = $offset;
        }

        return $this;
    }
public function limit(int $limit, int $offset = null)
    {
        $this->changed = true;
        $this->limit = $limit;

        if ($offset !== null) {
            $this->offset = $offset;
        }

        return $this;
    }
public function limit ( int $ limit , int $ offset = null ) { $ this -> changed = true ; $ this -> limit = $ limit ; if ( $ offset !== null ) { $ this -> offset = $ offset ; } return $ this ; }
Set a LIMIT and optional OFFSET.

@param int $limit
@param int|null $offset
@return self
Set a LIMIT and optional OFFSET .