Lines 100.00% 1 / 1
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
RegistrationInfo 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Control\Protocol\Status;
6
7use Stewart\Contracts\Time\Instant;
8use Stewart\Runtime\Model\SubscriptionKind;
9
10final readonly class RegistrationInfo
11{
12    public function __construct(
13        public string $subscriptionId,
14        public int $workerId,
15        public string $appId,
16        public SubscriptionKind $kind,
17        public string $selector,
18        public bool $exact,
19        public int $received = 0,
20        public int $handled = 0,
21        public int $dropped = 0,
22        public ?Instant $lastReceivedAt = null,
23        public ?Instant $lastHandledAt = null,
24    ) {}
25}