Lines 0.00% 0 / 2
Methods 0.00% 0 / 2
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
17final readonly class ExposeEntityRequest implements WorkerMessage, HaCallRequest
18{
19    public function __construct(
20        public CorrelationId $correlationId,
21        public ResourceScope $scope,
22        public ExposedEntityKey $key,
23        public ExposureConfig $config,
24        public ?DeviceInfo $device,
25        public ExposedStateChange $change,
26    ) {}
27
28    public function createUnreachableFailure(string $detail, ?Throwable $previous = null): ExposureException
29    {
30        return ExposureException::unreachable($this->key, $detail, $previous);
31    }
32}