Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class EndTheTurn |
||
8 | { |
||
9 | private $match; |
||
10 | private $player; |
||
11 | |||
12 | public function __construct(MatchId $match, int $player) |
||
13 | { |
||
14 | $this->match = $match; |
||
15 | $this->player = $player; |
||
16 | } |
||
17 | |||
18 | public static function for(MatchId $match, int $player): self |
||
21 | } |
||
22 | |||
23 | public function match(): MatchId |
||
24 | { |
||
25 | return $this->match; |
||
26 | } |
||
27 | |||
28 | public function player(): int |
||
31 | } |
||
32 | } |
||
33 |