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
Pong 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\Duration;
8use Stewart\Contracts\Wire\ListOf;
9use Stewart\Store\StoreHealth;
10
11#[IpcMessage(tag: 'pong')]
12final readonly class Pong implements WorkerMessage
13{
14    /** @param list<AppActivityReport> $apps */
15    public function __construct(
16        public int $nonce,
17        public Duration $loopLag,
18        public int $memoryBytes,
19        #[ListOf(AppActivityReport::class)]
20        public array $apps = [],
21        public ?StoreHealth $store = null,
22    ) {}
23}