src/Builder.php
public function limit($offset = null, $limit = null)
    {
    	$args = func_get_args();
    	if (count($args) === 0) {
    		throw new Exception('At least 1 argument');
    	}
    	if (count($args) == 1) {
    		$this->limit =  $args[0];
    	} else {
    		list($this->offset, $this->limit) = $args;
    	}
        return $this;
    }
public function limit($offset = null, $limit = null)
    {
    	$args = func_get_args();
    	if (count($args) === 0) {
    		throw new Exception('At least 1 argument');
    	}
    	if (count($args) == 1) {
    		$this->limit =  $args[0];
    	} else {
    		list($this->offset, $this->limit) = $args;
    	}
        return $this;
    }
public function limit ( $ offset = null , $ limit = null ) { $ args = func_get_args ( ) ; if ( count ( $ args ) === 0 ) { throw new Exception ( 'At least 1 argument' ) ; } if ( count ( $ args ) == 1 ) { $ this -> limit = $ args [ 0 ] ; } else { list ( $ this -> offset , $ this -> limit ) = $ args ; } return $ this ; }
Set limit and offset
@param int $offset
@param int $limit
@throws Exception
@return \Puja\SqlBuilder\Builder
Set limit and offset