| 1 | <?php  | 
            ||
| 9 | class Language 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 mixed  | 
            ||
| 25 | */  | 
            ||
| 26 | 18 | 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 | 21 | public function all()  | 
            |
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Load the data for the given locale.  | 
            ||
| 57 | *  | 
            ||
| 58 | * @param string $locale  | 
            ||
| 59 | * @return array  | 
            ||
| 60 | */  | 
            ||
| 61 | 21 | protected function data($locale)  | 
            |
| 71 | }  |