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
ServiceCallResult 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\Service\ServiceResponse;
8use Stewart\Runtime\Model\CorrelationId;
9
10#[IpcMessage(tag: 'service_call_result')]
11final readonly class ServiceCallResult implements CorrelatedReply
12{
13    public function __construct(
14        public CorrelationId $correlationId,
15        public ServiceResponse $result,
16    ) {}
17
18    public function getAnswer(): ServiceResponse
19    {
20        return $this->result;
21    }
22
23    public function getOutboxDelivery(): OutboxDelivery
24    {
25        return OutboxDelivery::Plain;
26    }
27}