<?php
declare(strict_types=1);
namespace Slivki\BusinessFeature\Yclients\Request;
use Slivki\BusinessFeature\Yclients\SortType;
use Slivki\Request\QueryStringRequestInterface;
final class SearchAvailableAppointmentRequest implements QueryStringRequestInterface
{
private int $categoryId;
private string $date;
private string $rangeTime;
private ?float $latitude;
private ?float $longitude;
private string $sortBy;
public function __construct(
int $categoryId,
string $date,
string $rangeTime,
?float $latitude = null,
?float $longitude = null,
string $sortBy = SortType::VARIETY
) {
$this->categoryId = $categoryId;
$this->date = $date;
$this->rangeTime = $rangeTime;
$this->latitude = $latitude;
$this->longitude = $longitude;
$this->sortBy = $sortBy;
}
public function getCategoryId(): int
{
return $this->categoryId;
}
public function getDate(): string
{
return $this->date;
}
public function getRangeTime(): string
{
return $this->rangeTime;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
public function getSortBy(): string
{
return $this->sortBy;
}
}