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