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