| 1 | <?php |
||
| 7 | class ApplicationLocale |
||
|
|
|||
| 8 | { |
||
| 9 | /** @var Config */ |
||
| 10 | private $config; |
||
| 11 | |||
| 12 | /** @var Locale */ |
||
| 13 | private $originalLocale; |
||
| 14 | |||
| 15 | 79 | private function __construct(Locale $originalLocale, Config $config) |
|
| 20 | |||
| 21 | 79 | public static function from($originalLocale) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Convert locale to application locale. |
||
| 32 | * |
||
| 33 | * @return Locale |
||
| 34 | */ |
||
| 35 | 77 | public function get(): Locale |
|
| 52 | |||
| 53 | 1 | public function equals(self $other): bool |
|
| 57 | |||
| 58 | 74 | public function __toString(): string |
|
| 62 | } |
||
| 63 |