Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | #[Immutable] |
||
22 | final class DispatchException extends \LogicException |
||
23 | { |
||
24 | private const MESSAGE_SIGNAL_CONSOLE_EVENT = 'Rollback transaction: Message was interrupted in "%s" command on signal'; |
||
25 | |||
26 | public static function fromSignal(ConsoleSignalEvent $event): self |
||
27 | { |
||
28 | $message = sprintf(self::MESSAGE_SIGNAL_CONSOLE_EVENT, $event->getCommand()->getName()); |
||
29 | |||
30 | return new self($message, $event->getHandlingSignal()); |
||
31 | } |
||
32 | |||
33 | public static function fromThrowable(\Throwable $previous): self |
||
36 | } |
||
37 | } |
||
38 |