| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | final class TurnSwitcher implements EventHandler |
||
| 12 | { |
||
| 13 | /** @var OngoingMatches */ |
||
| 14 | private $ongoingMatches; |
||
| 15 | |||
| 16 | public function __construct(OngoingMatches $ongoingMatches) |
||
| 19 | } |
||
| 20 | |||
| 21 | public function events(): iterable |
||
| 22 | { |
||
| 23 | return [NextTurnBegan::class]; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function handle(DomainEvent $nextTurn): void |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | private function becameTheTurnOf( |
||
| 41 | } |
||
| 42 | } |
||
| 43 |