Lines
0.00%
0 / 2
Functions and Methods
0.00%
0 / 2
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ReconfigureExposedEntityRequest | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 6 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| createUnreachableFailure | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Ipc\Message; | |
| 6 | ||
| 7 | use Stewart\Contracts\Exception\ExposureException; | |
| 8 | use Stewart\Contracts\Exposure\ExposedEntityKey; | |
| 9 | use Stewart\Contracts\Exposure\ExposureConfig; | |
| 10 | use Stewart\Runtime\Model\CorrelationId; | |
| 11 | use Stewart\Runtime\Model\ResourceScope; | |
| 12 | use Throwable; | |
| 13 | ||
| 14 | #[IpcMessage(tag: 'reconfigure_exposed_entity_request')] | |
| 15 | final readonly class ReconfigureExposedEntityRequest implements WorkerMessage, HaCallRequest | |
| 16 | { | |
| 17 | public function __construct( | |
| 18 | public CorrelationId $correlationId, | |
| 19 | public ResourceScope $scope, | |
| 20 | public ExposedEntityKey $key, | |
| 21 | public ExposureConfig $config, | |
| 22 | ) {} | |
| 23 | ||
| 24 | public function createUnreachableFailure(string $detail, ?Throwable $previous = null): ExposureException | |
| 25 | { | |
| 26 | return ExposureException::unreachable($this->key, $detail, $previous); | |
| 27 | } | |
| 28 | } |