1 | <?php |
||
8 | class GlobalContext |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $locale; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $defaultLocale; |
||
19 | |||
20 | /** |
||
21 | * GlobalContext constructor. |
||
22 | * |
||
23 | * @param string $defaultLocale |
||
24 | * @param string $locale |
||
25 | */ |
||
26 | public function __construct($defaultLocale, $locale) |
||
31 | |||
32 | /** |
||
33 | * Returns the default locale of the application. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getDefaultLocale() |
||
41 | |||
42 | /** |
||
43 | * Returns the global locale of the application. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getLocale() |
||
51 | } |
||
52 |