public function limit($limit, $offset = null)
    {
        $this->queryBuilder->setLimit($limit, $offset);
        return $this;
    }
public function limit($limit, $offset = null)
    {
        $this->queryBuilder->setLimit($limit, $offset);
        return $this;
    }
public function limit ( $ limit , $ offset = null ) { $ this -> queryBuilder -> setLimit ( $ limit , $ offset ) ; return $ this ; }
Limit the amount of maximum rows returned

@param  int    $limit
@param  int    $offset
@return static
Limit the amount of maximum rows returned