Example #1
0
 /**
  * Create generic collection
  *
  * @param  array  $data
  * @return Images
  */
 public function createCollection(array $data = array())
 {
     $collection = new Images();
     foreach ($data as $item) {
         $collection->add(null, $this->create($item));
     }
     return $collection;
 }