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
EventFired 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\Event\HaEvent;
8use Stewart\Contracts\Wire\ListOf;
9use Stewart\Runtime\Model\SubscriptionId;
10
11#[IpcMessage(tag: 'event_fired')]
12final readonly class EventFired implements BrokerMessage
13{
14    /** @param list<SubscriptionId> $deliverTo */
15    public function __construct(
16        public HaEvent $event,
17        #[ListOf(SubscriptionId::class)]
18        public array $deliverTo,
19    ) {}
20
21    public function getOutboxDelivery(): OutboxDelivery
22    {
23        return OutboxDelivery::Droppable;
24    }
25}