| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class Card |
||
| 6 | { |
||
| 7 | /** @var int */ |
||
| 8 | private $offset; |
||
| 9 | /** @var CardTemplate */ |
||
| 10 | private $template; |
||
| 11 | /** @var bool */ |
||
| 12 | private $isAttacking = false; |
||
| 13 | |||
| 14 | public function __construct(int $offset, CardTemplate $template) |
||
| 15 | { |
||
| 16 | $this->offset = $offset; |
||
| 17 | $this->template = $template; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function isAttacking(): bool |
||
| 21 | { |
||
| 22 | return $this->isAttacking; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function template(): CardTemplate |
||
| 26 | { |
||
| 27 | return $this->template; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function offset(): int |
||
| 33 | } |
||
| 34 | |||
| 35 | public function attack(): void |
||
| 38 | } |
||
| 39 | |||
| 40 | public function regroup(): void |
||
| 41 | { |
||
| 45 |