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
SubscriptionAck 0.00% 0 / 2 0.00% 0 / 2 6 0.00% 0 / 1
 __construct 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\Runtime\Model\SubscriptionId;
8
9#[IpcMessage(tag: 'subscription_ack')]
10final readonly class SubscriptionAck implements BrokerMessage
11{
12    public function __construct(
13        public SubscriptionId $subscriptionId,
14        public bool $accepted,
15        public ?string $reason,
16    ) {}
17
18    public function getOutboxDelivery(): OutboxDelivery
19    {
20        return OutboxDelivery::Plain;
21    }
22}