| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class AttackWithCard implements Command |
||
| 10 | { |
||
| 11 | /** @var int */ |
||
| 12 | private $offset; |
||
| 13 | /** @var int */ |
||
| 14 | private $player; |
||
| 15 | /** @var MatchId */ |
||
| 16 | private $match; |
||
| 17 | /** @var CorrelationId */ |
||
| 18 | private $correlationId; |
||
| 19 | |||
| 20 | private function __construct( |
||
| 21 | int $offset, |
||
| 22 | int $player, |
||
| 23 | MatchId $match, |
||
| 24 | CorrelationId $correlationId |
||
| 25 | ) { |
||
| 26 | $this->offset = $offset; |
||
| 27 | $this->player = $player; |
||
| 28 | $this->match = $match; |
||
| 29 | $this->correlationId = $correlationId; |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function number( |
||
| 39 | } |
||
| 40 | |||
| 41 | public function cardNumber(): int |
||
| 44 | } |
||
| 45 | |||
| 46 | public function player(): int |
||
| 49 | } |
||
| 50 | |||
| 51 | public function match(): MatchId |
||
| 54 | } |
||
| 55 | |||
| 56 | public function correlationId(): CorrelationId |
||
| 61 |