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
EventFireResult 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
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Ipc\Message;
6
7use Stewart\Contracts\State\EventContext;
8use Stewart\Runtime\Model\CorrelationId;
9
10#[IpcMessage(tag: 'event_fire_result')]
11final readonly class EventFireResult implements CorrelatedReply
12{
13    public function __construct(
14        public CorrelationId $correlationId,
15        public EventContext $context,
16    ) {}
17
18    public function getAnswer(): EventContext
19    {
20        return $this->context;
21    }
22
23    public function getOutboxDelivery(): OutboxDelivery
24    {
25        return OutboxDelivery::Plain;
26    }
27}