| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class Weapon implements InventoryItem |
||
| 13 | { |
||
| 14 | public function __construct( |
||
| 22 | |||
| 23 | public function getName(): string |
||
| 24 | { |
||
| 25 | return $this->name; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getDescription(): string |
||
| 29 | { |
||
| 30 | return $this->description; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getSellValue(): Coin |
||
| 34 | { |
||
| 35 | return $this->sellValue; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getType(): WeaponType |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getDamage(): Damage |
||
| 46 | } |
||
| 47 | } |
||
| 48 |