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
ExposedEntitySynced 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\Exposure\ExposedEntityKey;
8use Stewart\Contracts\Exposure\ExposedEntitySnapshot;
9use Stewart\Runtime\Model\ResourceScope;
10
11#[IpcMessage(tag: 'exposed_entity_synced')]
12final readonly class ExposedEntitySynced implements BrokerMessage
13{
14    public function __construct(
15        public ResourceScope $scope,
16        public ExposedEntityKey $key,
17        public ExposedEntitySnapshot $snapshot,
18    ) {}
19
20    public function getOutboxDelivery(): OutboxDelivery
21    {
22        return OutboxDelivery::Plain;
23    }
24}