wip: booking process

This commit is contained in:
Björn Fromme committed 2025-07-16 11:55:49 +02:00
1 parent bef18971c3
commit 47faa6b08e
26 files changed
+1123 -271

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Form\Model;
use Symfony\Component\Validator\Constraints as Assert;
class RoomSelectionDto
{
#[Assert\NotNull(message: 'Bitte eine Zimmerkategorie auswählen')]
public ?int $roomId = null;
public ?string $roomLabel = null;
public ?int $quantity = null;
public int $maxQuantity = 100;
public int $minPax = 0;
public function getType(): string
{
if (1 === preg_match('/bett/i', $this->roomLabel)) {
return 'by_pax';
}
return 'by_room';
}
}