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
StateSnapshot 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\Ipc\Wire\EntityStatesFragment;
8
9#[IpcMessage(tag: 'state_snapshot')]
10final readonly class StateSnapshot implements BrokerMessage
11{
12    public function __construct(
13        public EntityStatesFragment $states,
14        public int $revision,
15    ) {}
16
17    public function getOutboxDelivery(): OutboxDelivery
18    {
19        return OutboxDelivery::StateSegmentBoundary;
20    }
21}