Lines 0.00% 0 / 2
Methods 0.00% 0 / 2
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 attach 0.00% 0 / 1 0.00% 0 / 1 2
21final readonly class DispatchSource implements StreamSource
22{
23    public function __construct(
24        private LocalDispatcher $dispatcher,
25        private ResourceScope $scope,
26        private SubscriptionKind $kind,
27        private Selector $selector,
28        private ?TriggerSpec $trigger = null,
29        private ?EntityFilter $entityFilter = null,
30    ) {}
31
32    public function attach(SubscriptionScope $scope, Closure $downstream): Subscription
33    {
34        return $this->dispatcher->register($this->scope, $this->kind, $this->selector, $scope, $downstream, $this->trigger, $this->entityFilter);
35    }
36}