public static function create(
        string $queryText,
        int $page = self::DEFAULT_PAGE,
        int $size = self::DEFAULT_SIZE
    ): self {
        $page = (int) (max(1, $page));
        $query = new self($queryText);
        $query->from = ($page - 1) * $size;
        $query->size = $size;
        $query->page = $page;

        return $query;
    }
public static function create(
        string $queryText,
        int $page = self::DEFAULT_PAGE,
        int $size = self::DEFAULT_SIZE
    ): self {
        $page = (int) (max(1, $page));
        $query = new self($queryText);
        $query->from = ($page - 1) * $size;
        $query->size = $size;
        $query->page = $page;

        return $query;
    }
public static function create ( string $ queryText , int $ page = self :: DEFAULT_PAGE , int $ size = self :: DEFAULT_SIZE ) : self { $ page = ( int ) ( max ( 1 , $ page ) ) ; $ query = new self ( $ queryText ) ; $ query -> from = ( $ page - 1 ) * $ size ; $ query -> size = $ size ; $ query -> page = $ page ; return $ query ; }
Create new.

@param string $queryText
@param int    $page
@param int    $size

@return Query
Create new .