src/BusinessFeature/Yclients/Request/SearchAvailableAppointmentRequest.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Slivki\BusinessFeature\Yclients\Request;
  4. use Slivki\BusinessFeature\Yclients\SortType;
  5. use Slivki\Request\QueryStringRequestInterface;
  6. final class SearchAvailableAppointmentRequest implements QueryStringRequestInterface
  7. {
  8.     private int $categoryId;
  9.     private string $date;
  10.     private string $rangeTime;
  11.     private ?float $latitude;
  12.     private ?float $longitude;
  13.     private string $sortBy;
  14.     public function __construct(
  15.         int $categoryId,
  16.         string $date,
  17.         string $rangeTime,
  18.         ?float $latitude null,
  19.         ?float $longitude null,
  20.         string $sortBy SortType::VARIETY
  21.     ) {
  22.         $this->categoryId $categoryId;
  23.         $this->date $date;
  24.         $this->rangeTime $rangeTime;
  25.         $this->latitude $latitude;
  26.         $this->longitude $longitude;
  27.         $this->sortBy $sortBy;
  28.     }
  29.     public function getCategoryId(): int
  30.     {
  31.         return $this->categoryId;
  32.     }
  33.     public function getDate(): string
  34.     {
  35.         return $this->date;
  36.     }
  37.     public function getRangeTime(): string
  38.     {
  39.         return $this->rangeTime;
  40.     }
  41.     public function getLatitude(): ?float
  42.     {
  43.         return $this->latitude;
  44.     }
  45.     public function getLongitude(): ?float
  46.     {
  47.         return $this->longitude;
  48.     }
  49.     public function getSortBy(): string
  50.     {
  51.         return $this->sortBy;
  52.     }
  53. }