<?php
declare(strict_types=1);
namespace Slivki\Request\WorkExample;
use Slivki\Request\QueryStringRequestInterface;
final class GetWorkExamplesRequest implements QueryStringRequestInterface
{
private ?int $page;
private ?int $perPage;
private ?string $sortField;
private ?string $sortDirection;
private ?int $categoryId;
private ?int $offerId;
private ?float $longitude;
private ?float $latitude;
private ?float $minPrice;
private ?float $maxPrice;
public function __construct(
?int $page,
?int $perPage,
?string $sortField,
?string $sortDirection,
?int $categoryId,
?int $offerId,
?float $longitude,
?float $latitude,
?float $minPrice,
?float $maxPrice
) {
$this->page = $page;
$this->perPage = $perPage;
$this->sortField = $sortField;
$this->sortDirection = $sortDirection;
$this->categoryId = $categoryId;
$this->offerId = $offerId;
$this->longitude = $longitude;
$this->latitude = $latitude;
$this->minPrice = $minPrice;
$this->maxPrice = $maxPrice;
}
public function getPage(): ?int
{
return $this->page;
}
public function getPerPage(): ?int
{
return $this->perPage;
}
public function getSortField(): ?string
{
return $this->sortField;
}
public function getSortDirection(): ?string
{
return $this->sortDirection;
}
public function getCategoryId(): ?int
{
return $this->categoryId;
}
public function getOfferId(): ?int
{
return $this->offerId;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function getMinPrice(): ?float
{
return $this->minPrice;
}
public function getMaxPrice(): ?float
{
return $this->maxPrice;
}
}