src/Message/Query/Beauty/Offer/GetMastersWithFilterQuery.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Slivki\Message\Query\Beauty\Offer;
  4. use Slivki\Messenger\Query\QueryInterface;
  5. use Slivki\ValueObject\Coordinate;
  6. final class GetMastersWithFilterQuery implements QueryInterface
  7. {
  8.     private int $offerId;
  9.     private int $page;
  10.     private int $perPage;
  11.     private ?int $level;
  12.     private ?Coordinate $currentUserPosition;
  13.     public function __construct(int $offerIdint $pageint $perPage, ?int $level, ?Coordinate $currentUserPosition null)
  14.     {
  15.         $this->offerId $offerId;
  16.         $this->page $page;
  17.         $this->perPage $perPage;
  18.         $this->level $level;
  19.         $this->currentUserPosition $currentUserPosition;
  20.     }
  21.     public function getOfferId(): int
  22.     {
  23.         return $this->offerId;
  24.     }
  25.     public function getPage(): int
  26.     {
  27.         return $this->page;
  28.     }
  29.     public function getPerPage(): int
  30.     {
  31.         return $this->perPage;
  32.     }
  33.     public function getLevel(): ?int
  34.     {
  35.         return $this->level;
  36.     }
  37.     public function getCurrentUserPosition(): ?Coordinate
  38.     {
  39.         return $this->currentUserPosition;
  40.     }
  41. }