| 1 | <?php namespace Arcanedev\LaravelLang\Entities; |
||
| 12 | class LocaleCollection extends Collection |
||
| 13 | { |
||
| 14 | /* ----------------------------------------------------------------- |
||
| 15 | | Main Methods |
||
| 16 | | ----------------------------------------------------------------- |
||
| 17 | */ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get an item from the collection by key. |
||
| 21 | * |
||
| 22 | * @param string $key |
||
| 23 | * @param mixed $default |
||
| 24 | * |
||
| 25 | * @return \Arcanedev\LaravelLang\Contracts\Entities\Locale|mixed |
||
| 26 | */ |
||
| 27 | 36 | public function get($key, $default = null) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Add a locale to collection. |
||
| 34 | * |
||
| 35 | * @param \Arcanedev\LaravelLang\Contracts\Entities\Locale $local |
||
| 36 | * |
||
| 37 | * @return self |
||
| 38 | */ |
||
| 39 | 76 | public function addOne(LocaleContract $local) |
|
| 43 | } |
||
| 44 |