initial commit

This commit is contained in:
bastien
2026-06-28 12:29:53 +02:00
parent 03e85d2f9d
commit b2443b654c
220 changed files with 24969 additions and 1 deletions
@@ -0,0 +1,13 @@
<?php
namespace App\Exceptions;
use RuntimeException;
class BookingConflictException extends RuntimeException
{
public function __construct(string $message = 'Ce créneau est déjà réservé.')
{
parent::__construct($message);
}
}
@@ -0,0 +1,13 @@
<?php
namespace App\Exceptions;
use RuntimeException;
class MachineNotAvailableException extends RuntimeException
{
public function __construct(string $message = 'La machine n\'est pas disponible.')
{
parent::__construct($message);
}
}
@@ -0,0 +1,15 @@
<?php
namespace App\Exceptions;
use RuntimeException;
class WalletInsufficientFundsException extends RuntimeException
{
public function __construct(
public readonly float $required,
public readonly float $available,
) {
parent::__construct("Solde insuffisant : {$available} EUR disponibles, {$required} EUR requis.");
}
}