src/Request/WorkExample/GetWorkExamplesRequest.php line 9

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Slivki\Request\WorkExample;
  4. use Slivki\Request\QueryStringRequestInterface;
  5. final class GetWorkExamplesRequest implements QueryStringRequestInterface
  6. {
  7.     private ?int $page;
  8.     private ?int $perPage;
  9.     private ?string $sortField;
  10.     private ?string $sortDirection;
  11.     private ?int $categoryId;
  12.     private ?int $offerId;
  13.     private ?float $longitude;
  14.     private ?float $latitude;
  15.     private ?float $minPrice;
  16.     private ?float $maxPrice;
  17.     public function __construct(
  18.         ?int $page,
  19.         ?int $perPage,
  20.         ?string $sortField,
  21.         ?string $sortDirection,
  22.         ?int $categoryId,
  23.         ?int $offerId,
  24.         ?float $longitude,
  25.         ?float $latitude,
  26.         ?float $minPrice,
  27.         ?float $maxPrice
  28.     ) {
  29.         $this->page $page;
  30.         $this->perPage $perPage;
  31.         $this->sortField $sortField;
  32.         $this->sortDirection $sortDirection;
  33.         $this->categoryId $categoryId;
  34.         $this->offerId $offerId;
  35.         $this->longitude $longitude;
  36.         $this->latitude $latitude;
  37.         $this->minPrice $minPrice;
  38.         $this->maxPrice $maxPrice;
  39.     }
  40.     public function getPage(): ?int
  41.     {
  42.         return $this->page;
  43.     }
  44.     public function getPerPage(): ?int
  45.     {
  46.         return $this->perPage;
  47.     }
  48.     public function getSortField(): ?string
  49.     {
  50.         return $this->sortField;
  51.     }
  52.     public function getSortDirection(): ?string
  53.     {
  54.         return $this->sortDirection;
  55.     }
  56.     public function getCategoryId(): ?int
  57.     {
  58.         return $this->categoryId;
  59.     }
  60.     public function getOfferId(): ?int
  61.     {
  62.         return $this->offerId;
  63.     }
  64.     public function getLongitude(): ?float
  65.     {
  66.         return $this->longitude;
  67.     }
  68.     public function getLatitude(): ?float
  69.     {
  70.         return $this->latitude;
  71.     }
  72.     public function getMinPrice(): ?float
  73.     {
  74.         return $this->minPrice;
  75.     }
  76.     public function getMaxPrice(): ?float
  77.     {
  78.         return $this->maxPrice;
  79.     }
  80. }