public function limit($limit) : QueryBuilder
    {
        $this->_query[] = "LIMIT";

        if(is_array($limit)) {
            $this->_query[] = $this->getQuoted($limit[0]).",";
            $this->_query[] = $this->getQuoted($limit[1]);

            return $this;
        }

        $this->_query[] = $this->getQuoted($limit);

        return $this;
    }
public function limit($limit) : QueryBuilder
    {
        $this->_query[] = "LIMIT";

        if(is_array($limit)) {
            $this->_query[] = $this->getQuoted($limit[0]).",";
            $this->_query[] = $this->getQuoted($limit[1]);

            return $this;
        }

        $this->_query[] = $this->getQuoted($limit);

        return $this;
    }
public function limit ( $ limit ) : QueryBuilder { $ this -> _query [ ] = "LIMIT" ; if ( is_array ( $ limit ) ) { $ this -> _query [ ] = $ this -> getQuoted ( $ limit [ 0 ] ) . "," ; $ this -> _query [ ] = $ this -> getQuoted ( $ limit [ 1 ] ) ; return $ this ; } $ this -> _query [ ] = $ this -> getQuoted ( $ limit ) ; return $ this ; }
Begins the LIMIT part of the query

@param int|array $limit Limit value

@return QueryBuilder Chainability object
Begins the LIMIT part of the query