Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | final class ProposalSender implements EventHandler |
||
12 | { |
||
13 | private $proposals; |
||
14 | |||
15 | public function __construct(MatchProposals $proposals) |
||
18 | } |
||
19 | |||
20 | public function events(): iterable |
||
21 | { |
||
22 | return [MatchWasProposed::class]; |
||
23 | } |
||
24 | |||
25 | public function handle(DomainEvent $event): void |
||
35 | ) |
||
36 | ); |
||
39 |