forked from Somnia/SomniaRooms
23 lines
518 B
PHP
23 lines
518 B
PHP
<?php
|
|
|
|
namespace App\Request;
|
|
|
|
use DateTimeImmutable;
|
|
use OpenApi\Attributes as OA;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class SearchPricesForCategoryRequest
|
|
{
|
|
#[OA\Property(description: 'Room category ID')]
|
|
#[Assert\NotBlank]
|
|
public int $roomCategory;
|
|
|
|
#[OA\Property(description: 'Period start date')]
|
|
#[Assert\NotBlank]
|
|
public DateTimeImmutable $startDate;
|
|
|
|
#[OA\Property(description: 'Period end date')]
|
|
#[Assert\NotBlank]
|
|
public DateTimeImmutable $endDate;
|
|
}
|