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