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