| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class Locale |
||
| 17 | { |
||
| 18 | public const LOCALE = ['fr']; |
||
| 19 | |||
| 20 | private string $locale; |
||
| 21 | |||
| 22 | public function __construct(string $locale) |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function fromString(string $locale): self |
||
| 28 | { |
||
| 29 | return new self($locale); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getValue(): string |
||
| 35 | } |
||
| 36 | |||
| 37 | private static function isLocale(string $locale): string |
||
| 46 |