| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class Location implements \Stringable |
||
| 8 | { |
||
| 9 | public const MERCENARY_CAMP = 'Mercenary Camp'; |
||
| 10 | public const DARK_WOODS = 'Dark Woods'; |
||
| 11 | |||
| 12 | private function __construct( |
||
| 13 | private string $location, |
||
| 14 | ) {} |
||
| 15 | |||
| 16 | public static function mercenaryCamp(): self |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function darkWoods(): self |
||
| 22 | { |
||
| 23 | return new self(self::DARK_WOODS); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function __toString(): string |
||
| 29 | } |
||
| 30 | } |
||
| 31 |