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
BrokerSubscription 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\Broker;
6
7use Stewart\Contracts\Selector\Selector;
8use Stewart\Runtime\Model\ResourceScope;
9use Stewart\Runtime\Model\SubscriptionId;
10use Stewart\Runtime\Model\SubscriptionKind;
11use Stewart\Runtime\Model\WorkerId;
12use Stewart\Support\Wire\TriggerSpec;
13
14final readonly class BrokerSubscription
15{
16    public function __construct(
17        public SubscriptionId $subscriptionId,
18        public WorkerId $workerId,
19        public ResourceScope $scope,
20        public SubscriptionKind $kind,
21        public Selector $selector,
22        public ?TriggerSpec $trigger = null,
23    ) {}
24}