feat: explicit icon map for hotel cms-data response
This commit is contained in:
@@ -13,8 +13,8 @@ namespace App\Model;
|
||||
final readonly class CmsHotelData
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed>|null $images
|
||||
* @param array<string, array{label?: string|null, value?: mixed}>|null $icons
|
||||
* @param array<string, mixed>|null $images
|
||||
* @param list<array{icon: string, label: string|false}>|null $icons
|
||||
*/
|
||||
public function __construct(
|
||||
public ?string $name,
|
||||
|
||||
@@ -64,7 +64,7 @@ class CmsDataProvider
|
||||
* room_types?: string,
|
||||
* additional_information?: string,
|
||||
* images?: array<string, mixed>,
|
||||
* icons?: array<string, bool|string>,
|
||||
* icons?: list<array{icon: string, label: string|false}>,
|
||||
* region?: array{
|
||||
* name: string,
|
||||
* latitude: float,
|
||||
|
||||
Reference in New Issue
Block a user