feat: add typed dto for cms data
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* Typed hotel CMS payload for the booking summary.
|
||||
*/
|
||||
final readonly class BookingSummaryCmsHotelDto
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed>|null $images
|
||||
*/
|
||||
public function __construct(
|
||||
public ?string $name,
|
||||
public ?string $address,
|
||||
public ?array $images,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user