Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class EndBlocking implements Command |
||
10 | { |
||
11 | /** @var MatchId */ |
||
12 | private $match; |
||
13 | /** @var int */ |
||
14 | private $player; |
||
15 | /** @var CorrelationId */ |
||
16 | private $correlationId; |
||
17 | |||
18 | public 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 | public static function phase( |
||
29 | MatchId $match, |
||
30 | int $player, |
||
31 | CorrelationId $correlationId |
||
32 | ): self { |
||
33 | return new self($match, $player, $correlationId); |
||
34 | } |
||
35 | |||
36 | public function match(): MatchId |
||
37 | { |
||
38 | return $this->match; |
||
39 | } |
||
40 | |||
41 | public function player(): int |
||
44 | } |
||
45 | |||
46 | public function correlationId(): CorrelationId |
||
47 | { |
||
51 |