30 lines
608 B
PHP
30 lines
608 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
use Symfony\Component\Serializer\Attribute\SerializedName;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
readonly class BookingQueryParams
|
|
{
|
|
public function __construct(
|
|
#[SerializedName('date_id')]
|
|
#[Assert\NotNull]
|
|
#[Assert\Positive]
|
|
public int $dateId,
|
|
|
|
#[SerializedName('hotel_id')]
|
|
#[Assert\NotNull]
|
|
#[Assert\Positive]
|
|
public int $hotelId,
|
|
|
|
public ?string $agency = null,
|
|
|
|
#[SerializedName('r')]
|
|
public ?string $returnUrl = null,
|
|
) {
|
|
}
|
|
}
|