chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace App\Framework\DateTime\Exceptions;
use Exception;
class InvalidDateTimeException extends Exception
{
public function __construct(string $dateTime, ?string $format = null, ?\Throwable $previous = null)
{
$message = $format !== null
? sprintf('Konnte DateTime nicht aus "%s" mit Format "%s" erstellen', $dateTime, $format)
: sprintf('Ungültiges DateTime-Format: "%s"', $dateTime);
parent::__construct($message, 0, $previous);
}
}

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace App\Framework\DateTime\Exceptions;
use Exception;
class InvalidTimezoneException extends Exception
{
public function __construct(string $timezone, ?\Throwable $previous = null)
{
parent::__construct(
sprintf('Ungültige Zeitzone: "%s"', $timezone),
0,
$previous
);
}
}