feat: use query parameters for booking urls
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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,
|
||||
public string $theme = 'base',
|
||||
|
||||
#[SerializedName('r')]
|
||||
public ?string $returnUrl = null,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user