Example #1
0
 /**
  * @param  Models $models
  * @return Models $this
  */
 public function removeAll(Models $models)
 {
     $this->models->removeAll($models->all());
     return $this;
 }
Example #2
0
 /**
  * @covers ::add
  */
 public function testAdd()
 {
     $models = new Models();
     $model = new City();
     $models->add($model);
     $this->assertSame([$model], Objects::toArray($models->all()));
 }