feat: groups price calculator admin crud, booking/offer flow and api
This commit is contained in:
1 parent
eabed8295a
commit
9d2aa11fdb
258 files changed
+16231
-582
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* Typed CMS hotel payload, used both for the rich hotel-details view (booking offer page,
|
||||
* admin accommodation edit) and the slimmer booking-summary sidebar. Fields beyond name,
|
||||
* address and images are only populated when sourced from
|
||||
* {@see \App\Service\CmsDataProvider::getHotelDetails()}.
|
||||
*/
|
||||
final readonly class CmsHotelData
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed>|null $images
|
||||
* @param array<string, array{label?: string|null, value?: mixed}>|null $icons
|
||||
*/
|
||||
public function __construct(
|
||||
public ?string $name,
|
||||
public ?string $address,
|
||||
public ?array $images,
|
||||
public ?string $description = null,
|
||||
public ?string $features = null,
|
||||
public ?string $roomTypes = null,
|
||||
public ?string $additionalInformation = null,
|
||||
public ?array $icons = null,
|
||||
public ?CmsRegionData $region = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user