Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class EndCardPlaying implements Command |
||
10 | { |
||
11 | /** @var int */ |
||
12 | private $player; |
||
13 | /** @var MatchId */ |
||
14 | private $match; |
||
15 | /** @var CorrelationId */ |
||
16 | private $correlationId; |
||
17 | |||
18 | private function __construct( |
||
19 | int $player, |
||
20 | MatchId $match, |
||
21 | CorrelationId $correlationId |
||
|
|||
22 | ) { |
||
23 | $this->player = $player; |
||
24 | $this->match = $match; |
||
25 | } |
||
26 | |||
27 | public static function phase( |
||
28 | int $player, |
||
29 | MatchId $match, |
||
30 | CorrelationId $correlationId |
||
31 | ): self { |
||
32 | return new self($player, $match, $correlationId); |
||
33 | } |
||
34 | |||
35 | public function player(): int |
||
36 | { |
||
37 | return $this->player; |
||
38 | } |
||
39 | |||
40 | public function match(): MatchId |
||
41 | { |
||
42 | return $this->match; |
||
43 | } |
||
44 | |||
45 | public function correlationId(): CorrelationId |
||
48 | } |
||
49 | } |
||
50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.