Lines 0.00% 0 / 1
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
Publish 0.00% 0 / 1 0.00% 0 / 1 2 0.00% 0 / 1
 __construct 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;
8use Stewart\Runtime\Model\ResourceScope;
9
10#[IpcMessage(tag: 'publish')]
11final readonly class Publish implements WorkerMessage
12{
13    /** @param array<array-key, mixed>|scalar|null $payload */
14    public function __construct(
15        public string $topic,
16        public bool|int|float|string|array|null $payload,
17        public ResourceScope $publisherScope,
18        public Instant $publishedAt,
19    ) {}
20}