示例#1
0
 /**
  * Sort the array using the given Closure.
  *
  * @param  array     $array
  * @param  \Closure  $callback
  * @return array
  */
 public static function sort($array, Closure $callback)
 {
     return Collection::make($array)->sortBy($callback)->all();
 }
示例#2
0
 /**
  * @param string $iso
  *
  * @return bool
  */
 public function has($iso)
 {
     $iso = $this->prepareIso($iso);
     return parent::has($iso);
 }
示例#3
0
 /**
  * @param array $items
  */
 function __construct($items = [])
 {
     parent::__construct($items);
 }