Example #1
0
 /**
  * Add all models from a different Models collection
  *
  * @param Models $other
  */
 public function addAll(Models $other)
 {
     if ($other->count() > 0) {
         $this->models->addAll($other->models);
     }
     return $this;
 }
Example #2
0
 public function executeModels(Models $models)
 {
     if ($models->count() == 1) {
         $this->model($models->getFirst());
     } else {
         $this->models($models);
     }
     $this->execute();
 }
Example #3
0
 /**
  * @return int
  */
 public function count()
 {
     return $this->current->count();
 }
Example #4
0
 /**
  * @return int
  */
 public function count()
 {
     return $this->models->count();
 }