src/Neevo/Result.php
public function page($page, $items){
		if($page < 1 || $items < 1)
			throw new InvalidArgumentException('Arguments must be positive integers.');
		return $this->limit((int) $items, (int) ($items * --$page));
	}
public function page($page, $items){
		if($page < 1 || $items < 1)
			throw new InvalidArgumentException('Arguments must be positive integers.');
		return $this->limit((int) $items, (int) ($items * --$page));
	}
public function page ( $ page , $ items ) { if ( $ page < 1 || $ items < 1 ) throw new InvalidArgumentException ( 'Arguments must be positive integers.' ) ; return $ this -> limit ( ( int ) $ items , ( int ) ( $ items * -- $ page ) ) ; }
Adjusts the LIMIT and OFFSET clauses according to defined page number and number of items per page.
@param int $page Page number
@param int $items Number of items per page
@return Result fluent interface
@throws InvalidArgumentException
Adjusts the LIMIT and OFFSET clauses according to defined page number and number of items per page .