20 lines
487 B
PHP
20 lines
487 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Validator\Constraints;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
#[\Attribute]
|
|
class RoomSelection extends Constraint
|
|
{
|
|
public string $noRoomSelectedMessage = 'Bitte mindestens ein Zimmer/Bett auswählen';
|
|
public string $onlyBabyRoomsMessage = 'Baby-Zimmer können nur in Kombination mit regulären Zimmern gebucht werden.';
|
|
|
|
public function getTargets(): array|string
|
|
{
|
|
return static::CLASS_CONSTRAINT;
|
|
}
|
|
}
|