1 | <?php |
||
9 | class Country extends Intl |
||
10 | { |
||
11 | use WithLocales; |
||
12 | |||
13 | /** |
||
14 | * Loaded localized country data. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $data; |
||
19 | |||
20 | /** |
||
21 | * Get a localized record by key. |
||
22 | * |
||
23 | * @param string $key |
||
24 | * @return string |
||
25 | */ |
||
26 | 15 | public function get($key) |
|
30 | |||
31 | /** |
||
32 | * Alias of get(). |
||
33 | * |
||
34 | * @param string $key |
||
35 | * @return string |
||
36 | */ |
||
37 | 15 | public function name($key) |
|
41 | |||
42 | /** |
||
43 | * Get all localized records. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | 18 | public function all() |
|
54 | |||
55 | /** |
||
56 | * Get the data for the given locale. |
||
57 | * |
||
58 | * @param string $locale |
||
59 | * @return array |
||
60 | */ |
||
61 | 18 | protected function data($locale) |
|
71 | } |