| Total Complexity | 4 | 
| Total Lines | 35 | 
| Duplicated Lines | 0 % | 
| Coverage | 77.78% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 10 | final class LocaleState  | 
            ||
| 11 | { | 
            ||
| 12 | private string $language;  | 
            ||
| 13 | |||
| 14 | 122 | public function __construct(string $language = 'en')  | 
            |
| 15 |     { | 
            ||
| 16 | 122 | $this->language = $language;  | 
            |
| 17 | }  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Set the specified language code.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @param string $language The language code.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @return static  | 
            ||
| 25 | */  | 
            ||
| 26 | 2 | public function setLanguage(string $language): self  | 
            |
| 30 | }  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Gets the language code.  | 
            ||
| 34 | *  | 
            ||
| 35 | * @return string The language code.  | 
            ||
| 36 | */  | 
            ||
| 37 | 61 | public function getLanguage(): string  | 
            |
| 38 |     { | 
            ||
| 39 | 61 | return $this->language;  | 
            |
| 40 | }  | 
            ||
| 41 | |||
| 42 | public function __toString(): string  | 
            ||
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 |