feat: explicit icon map for hotel cms-data response

This commit is contained in:
Björn Fromme
2026-08-20 14:45:05 +02:00
parent ef439f6faf
commit 0a1683667f
4 changed files with 19 additions and 29 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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,