| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class TurnEndingProcess implements Handler |
||
| 14 | { |
||
| 15 | /** @var Matches */ |
||
| 16 | private $matches; |
||
| 17 | /** @var Clock */ |
||
| 18 | private $clock; |
||
| 19 | /** @var EventBag */ |
||
| 20 | private $eventBag; |
||
| 21 | |||
| 22 | public function __construct(Matches $matches, Clock $clock, EventBag $eventBag) |
||
| 23 | { |
||
| 24 | $this->matches = $matches; |
||
| 25 | $this->clock = $clock; |
||
| 26 | $this->eventBag = $eventBag; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function handle(object $command): void |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | private function endTurn(Match $theMatch, int $player): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 |