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