feat: inquiry bookings

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 2d9cb2c0b9
commit 023ecdebc9
11 changed files with 360 additions and 4 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Exception;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* Exception thrown when attempting to create a booking for a travel with Buchungsstop status.
*/
class BookingNotPossibleException extends HttpException
{
public function __construct(int $dateId, int $hotelId, ?\Throwable $previous = null)
{
$message = sprintf(
'Für diese Reise ist aktuell keine Buchung möglich (Travel ID: %d, Hotel ID: %d). Status: Buchungsstop',
$dateId,
$hotelId
);
parent::__construct(400, $message, $previous);
}
}