public function page($page, $size = 25)
    {
        if (($page = (int) $page) < 0) 
        {
            $page = 0;
        }

        $this->limit = (int) $size;
        $this->offset = (int) $size * $page;

        return $this;
    }
public function page($page, $size = 25)
    {
        if (($page = (int) $page) < 0) 
        {
            $page = 0;
        }

        $this->limit = (int) $size;
        $this->offset = (int) $size * $page;

        return $this;
    }
public function page ( $ page , $ size = 25 ) { if ( ( $ page = ( int ) $ page ) < 0 ) { $ page = 0 ; } $ this -> limit = ( int ) $ size ; $ this -> offset = ( int ) $ size * $ page ; return $ this ; }
Create an query limit based on a page and a page size

@param int        $page
@param int         $size
@return self The current query builder.
Create an query limit based on a page and a page size