Lines 0.00% 0 / 3
Methods 0.00% 0 / 3
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 createUnreachableFailure 0.00% 0 / 1 0.00% 0 / 1 2
 createOverloadedFailure 0.00% 0 / 1 0.00% 0 / 1 2
14final readonly class ActionCallRequest implements WorkerMessage, RefusableHaCallRequest
15{
16    /** @param array<string, mixed> $data */
17    public function __construct(
18        public CorrelationId $correlationId,
19        public ResourceScope $scope,
20        public string $domain,
21        public string $action,
22        public array $data,
23        public ?ActionTarget $target,
24        public bool $returnResponse,
25    ) {}
26
27    public function createUnreachableFailure(string $detail, ?Throwable $previous = null): ActionCallException
28    {
29        return ActionCallException::unreachable($this->domain, $this->action, $detail, $previous);
30    }
31
32    public function createOverloadedFailure(string $detail): ActionCallException
33    {
34        return ActionCallException::overloaded($this->domain, $this->action, $detail);
35    }
36}