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
HaConnectionLost 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\Contracts\Time\Instant;
8
9#[IpcMessage(tag: 'ha_connection_lost')]
10final readonly class HaConnectionLost implements BrokerMessage
11{
12    public function __construct(
13        public Instant $lostAt,
14        public string $reason,
15    ) {}
16
17    public function getOutboxDelivery(): OutboxDelivery
18    {
19        return OutboxDelivery::Plain;
20    }
21}