| 1 | <?php |
||
| 16 | class LocaleCollection extends Collection |
||
| 17 | { |
||
| 18 | /* ----------------------------------------------------------------- |
||
| 19 | | Main Methods |
||
| 20 | | ----------------------------------------------------------------- |
||
| 21 | */ |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get an item from the collection by key. |
||
| 25 | * |
||
| 26 | * @param string $key |
||
| 27 | * @param mixed $default |
||
| 28 | * |
||
| 29 | * @return \Arcanedev\LaravelLang\Contracts\Entities\Locale|mixed |
||
| 30 | */ |
||
| 31 | 40 | public function get($key, $default = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Add a locale to collection. |
||
| 38 | * |
||
| 39 | * @param \Arcanedev\LaravelLang\Contracts\Entities\Locale $local |
||
| 40 | * |
||
| 41 | * @return $this |
||
| 42 | */ |
||
| 43 | 88 | public function addOne(LocaleContract $local) |
|
| 47 | } |
||
| 48 |