Lines
50.00%
1 / 2
Methods
50.00%
1 / 2
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| describeMatch | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 16 | final readonly class RegisteredSubscription | |
| 17 | { | |
| 18 | public function __construct( | |
| 19 | public SubscriptionId $id, | |
| 20 | public ResourceScope $scope, | |
| 21 | public SubscriptionKind $kind, | |
| 22 | public Selector $selector, | |
| 23 | public SubscriptionScope $subscriptionScope, | |
| 24 | public Closure $handler, | |
| 25 | public ?TriggerSpec $trigger = null, | |
| 26 | public ?EntityFilter $entityFilter = null, | |
| 27 | ) {} | |
| 28 | ||
| 29 | public function describeMatch(): string | |
| 30 | { | |
| 31 | return $this->entityFilter?->toCanonicalKey() ?? $this->selector->toCanonicalKey(); | |
| 32 | } | |
| 33 | } |