| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 17 | final class EndPlayPhaseProcess implements CommandHandler |
||
| 18 | { |
||
| 19 | private $matches; |
||
| 20 | private $eventBag; |
||
| 21 | private $clock; |
||
| 22 | |||
| 23 | public function __construct( |
||
| 24 | Matches $matches, |
||
| 25 | Clock $clock, |
||
| 26 | EventBag $eventBag |
||
| 27 | ) { |
||
| 28 | $this->matches = $matches; |
||
| 29 | $this->eventBag = $eventBag; |
||
| 30 | $this->clock = $clock; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function handle(Command $command): void |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | private function endPlayPhase( |
||
| 62 |