| 1 | <?php namespace Propaganistas\LaravelIntl\Base; |
||
| 5 | class Intl implements IntlInterface |
||
| 6 | { |
||
| 7 | use LocaleCallback; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var mixed |
||
| 11 | */ |
||
| 12 | protected $data; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Get a localized entry. |
||
| 16 | * |
||
| 17 | * @param string $code |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | 48 | public function get($code) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Get a localized list of entries, keyed by their code. |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | 6 | public function all() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get the default locale. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 16 | public function getLocale() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Set the default locale. |
||
| 47 | * |
||
| 48 | * @param string $locale |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | 53 | public function setLocale($locale) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Get the fallback locale. |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | 8 | public function getFallbackLocale() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Set the desired locale. |
||
| 70 | * |
||
| 71 | * @param string $locale |
||
| 72 | * @return $this |
||
| 73 | */ |
||
| 74 | 20 | public function setFallbackLocale($locale) |
|
| 80 | } |