Lines 0.00% 0 / 1
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
AppFailed 0.00% 0 / 1 0.00% 0 / 1 2 0.00% 0 / 1
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Ipc\Message;
6
7use Stewart\Runtime\Lifecycle\AppFailurePhase;
8use Stewart\Runtime\Model\ExceptionDetails;
9use Stewart\Runtime\Model\ResourceScope;
10
11#[IpcMessage(tag: 'app_failed')]
12final readonly class AppFailed implements WorkerMessage
13{
14    public function __construct(
15        public ResourceScope $scope,
16        public AppFailurePhase $phase,
17        public string $class,
18        public string $message,
19        public string $trace,
20        public ?string $origin,
21        public int $occurrence,
22        public ?ExceptionDetails $details,
23    ) {}
24}