We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class ShipClass { |
||
| 9 | |||
| 10 | const HUNTER = 1; |
||
| 11 | const TRADER = 2; |
||
| 12 | const RAIDER = 3; |
||
| 13 | const SCOUT = 4; |
||
| 14 | const STARTER = 5; |
||
| 15 | |||
| 16 | const NAMES = [ |
||
| 17 | self::HUNTER => 'Hunter', |
||
| 18 | self::TRADER => 'Trader', |
||
| 19 | self::RAIDER => 'Raider', |
||
| 20 | self::SCOUT => 'Scout', |
||
| 21 | self::STARTER => 'Starter', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | public static function getName(int $shipClassID) : string { |
||
| 25 | return self::NAMES[$shipClassID]; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function getAllNames() : array { |
||
| 30 | } |
||
| 31 | |||
| 33 |