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
16final readonly class RegistryEntityUpdateRequest implements WorkerMessage, RefusableHaCallRequest
17{
18    public function __construct(
19        public CorrelationId $correlationId,
20        public ResourceScope $scope,
21        public EntityId $entityId,
22        public EntityRegistryUpdate $update,
23    ) {}
24
25    public function createUnreachableFailure(string $detail, ?Throwable $previous = null): RegistryEditException
26    {
27        return RegistryEditException::unreachable($this->entityId, $detail, $previous);
28    }
29
30    public function createOverloadedFailure(string $detail): RegistryEditException
31    {
32        return RegistryEditException::createForReason(RegistryEditError::Overloaded, entityId: $this->entityId->value, detail: $detail);
33    }
34}