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
Bootstrap 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\Sun\GeoLocation;
8use Stewart\Runtime\Ipc\StoreSettings;
9use Stewart\Runtime\Ipc\Wire\AppIdsFragment;
10use Stewart\Runtime\Ipc\Wire\WorkerAppsFragment;
11use Stewart\Runtime\Ipc\WorkerSettings;
12use Stewart\Runtime\Model\WorkerId;
13
14#[IpcMessage(tag: 'bootstrap')]
15final readonly class Bootstrap implements BrokerMessage
16{
17    public function __construct(
18        public int $protocol,
19        public WorkerId $workerId,
20        public string $timeZone,
21        public ?GeoLocation $location,
22        public WorkerAppsFragment $apps,
23        public WorkerSettings $settings,
24        public ?StoreSettings $store,
25        public AppIdsFragment $knownAppIds,
26        public AppIdsFragment $pausedAppIds,
27        public ?string $haUserId,
28    ) {}
29
30    public function getOutboxDelivery(): OutboxDelivery
31    {
32        return OutboxDelivery::Plain;
33    }
34}