| Total Complexity | 10 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class WeaponMastery implements Talent, \Stringable |
||
| 12 | { |
||
| 13 | 1 | private function __construct( |
|
| 14 | private WeaponType $type, |
||
| 15 | private WeaponMasteryLevel $level, |
||
| 16 | 1 | ) {} |
|
| 17 | |||
| 18 | 1 | public static function shortSword(WeaponMasteryLevel $level): self |
|
| 19 | { |
||
| 20 | 1 | return new self(WeaponType::shortSword(), $level); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public static function greatSword(WeaponMasteryLevel $level): self |
|
| 24 | { |
||
| 25 | 1 | return new self(WeaponType::greatSword(), $level); |
|
| 26 | } |
||
| 27 | |||
| 28 | public static function bow(WeaponMasteryLevel $level): self |
||
| 29 | { |
||
| 30 | return new self(WeaponType::bow(), $level); |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function getName(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | public static function getDescription(): string |
||
| 39 | { |
||
| 40 | return 'Talent of weapon fighting.'; |
||
| 41 | } |
||
| 42 | |||
| 43 | public static function getRequiredTalentPoints(): TalentPoints |
||
| 46 | } |
||
| 47 | |||
| 48 | 1 | public function getType(): WeaponType |
|
| 49 | { |
||
| 50 | 1 | return $this->type; |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | public function getLevel(): WeaponMasteryLevel |
|
| 54 | { |
||
| 55 | 1 | return $this->level; |
|
| 56 | } |
||
| 57 | |||
| 58 | public function __toString(): string |
||
| 61 | } |
||
| 62 | } |