Lines
0.00%
0 / 3
Functions and Methods
0.00%
0 / 3
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| RegistryEntityUpdateResult | 0.00% | 0 / 3 | 0.00% | 0 / 3 | 12 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| getAnswer | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| getOutboxDelivery | 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\Registry\RegisteredEntity; | |
| 8 | use Stewart\Runtime\Model\CorrelationId; | |
| 9 | ||
| 10 | #[IpcMessage(tag: 'registry_entity_update_result')] | |
| 11 | final readonly class RegistryEntityUpdateResult implements CorrelatedReply | |
| 12 | { | |
| 13 | public function __construct( | |
| 14 | public CorrelationId $correlationId, | |
| 15 | public RegisteredEntity $entity, | |
| 16 | ) {} | |
| 17 | ||
| 18 | public function getAnswer(): RegisteredEntity | |
| 19 | { | |
| 20 | return $this->entity; | |
| 21 | } | |
| 22 | ||
| 23 | public function getOutboxDelivery(): OutboxDelivery | |
| 24 | { | |
| 25 | return OutboxDelivery::Plain; | |
| 26 | } | |
| 27 | } |