for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelLang\Entities;
use Arcanedev\LaravelLang\Contracts\Entities\Locale as LocaleContract;
use Illuminate\Support\Collection;
/**
* Class LocaleCollection
*
* @package Arcanedev\LaravelLang\Entities
* @author ARCANEDEV <[email protected]>
*/
class LocaleCollection extends Collection
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Get an item from the collection by key.
* @param string $key
* @param mixed $default
* @return \Arcanedev\LaravelLang\Contracts\Entities\Locale|mixed
public function get($key, $default = null)
return parent::get($key, $default);
}
* Add a locale to collection.
* @param \Arcanedev\LaravelLang\Contracts\Entities\Locale $local
* @return self
public function addOne(LocaleContract $local)
return $this->put($local->getKey(), $local);