| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class NextTurnStarted implements MatchEvent |
||
| 9 | { |
||
| 10 | /** @var MatchId */ |
||
| 11 | private $match; |
||
| 12 | /** @var int */ |
||
| 13 | private $player; |
||
| 14 | |||
| 15 | public function __construct(MatchId $match, int $player) |
||
| 16 | { |
||
| 17 | $this->match = $match; |
||
| 18 | $this->player = $player; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function aggregateId(): MatchId |
||
| 22 | { |
||
| 23 | return $this->match; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function player(): int |
||
| 27 | { |
||
| 28 | return $this->player; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function match(): MatchId |
||
| 34 | } |
||
| 35 | } |
||
| 36 |