src/Request/PageAndPerPageRequest.php line 7

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Slivki\Request;
  4. class PageAndPerPageRequest implements QueryStringRequestInterface
  5. {
  6.     private int $page;
  7.     private int $perPage;
  8.     public function __construct(int $page 1int $perPage 48)
  9.     {
  10.         $this->page $page;
  11.         $this->perPage $perPage;
  12.     }
  13.     public function getPage(): int
  14.     {
  15.         return $this->page;
  16.     }
  17.     public function getPerPage(): int
  18.     {
  19.         return $this->perPage;
  20.     }
  21. }