src/Message/Query/Beauty/Offer/GetMastersQuery.php line 9

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 GetMastersQuery implements QueryInterface
  7. {
  8.     private int $offerId;
  9.     private ?int $level;
  10.     private ?Coordinate $currentUserPosition;
  11.     public function __construct(int $offerId, ?int $level, ?Coordinate $currentUserPosition)
  12.     {
  13.         $this->offerId $offerId;
  14.         $this->level $level;
  15.         $this->currentUserPosition $currentUserPosition;
  16.     }
  17.     public function getOfferId(): int
  18.     {
  19.         return $this->offerId;
  20.     }
  21.     public function getLevel(): ?int
  22.     {
  23.         return $this->level;
  24.     }
  25.     public function getCurrentUserPosition(): ?Coordinate
  26.     {
  27.         return $this->currentUserPosition;
  28.     }
  29. }