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