public function limit(int $limit, int $offset = 0, bool $limitOnMainTable = false) : self
    {
        $this->qiterator = null;
        $this->li_of = [ $limit, $offset, $limitOnMainTable ? 1 : 0 ];
        return $this;
    }
public function limit(int $limit, int $offset = 0, bool $limitOnMainTable = false) : self
    {
        $this->qiterator = null;
        $this->li_of = [ $limit, $offset, $limitOnMainTable ? 1 : 0 ];
        return $this;
    }
public function limit ( int $ limit , int $ offset = 0 , bool $ limitOnMainTable = false ) : self { $ this -> qiterator = null ; $ this -> li_of = [ $ limit , $ offset , $ limitOnMainTable ? 1 : 0 ] ; return $ this ; }
Apply an advanced limit
@param  int         $limit  number of rows to return
@param  int         $offset number of rows to skip from the beginning (defaults to 0)
@return $this
Apply an advanced limit