Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class EndTheTurn implements Command |
||
10 | { |
||
11 | /** @var MatchId */ |
||
12 | private $match; |
||
13 | /** @var int */ |
||
14 | private $player; |
||
15 | /** @var CorrelationId */ |
||
16 | private $correlationId; |
||
17 | |||
18 | private function __construct( |
||
19 | MatchId $match, |
||
20 | int $player, |
||
21 | CorrelationId $correlationId |
||
22 | ) { |
||
23 | $this->match = $match; |
||
24 | $this->player = $player; |
||
25 | $this->correlationId = $correlationId; |
||
26 | } |
||
27 | |||
28 | |||
29 | public static function for( |
||
35 | } |
||
36 | |||
37 | public function match(): MatchId |
||
38 | { |
||
39 | return $this->match; |
||
40 | } |
||
41 | |||
42 | public function player(): int |
||
43 | { |
||
44 | return $this->player; |
||
45 | } |
||
46 | |||
47 | public function correlationId(): CorrelationId |
||
50 | } |
||
51 | } |
||
52 |