public function push(MutationInterface $mutation) { $this->mutations->attach($mutation); return $this; }
public function getSurvivors($file) { $collection = new MutationCollection(); foreach ($this->getMutants($file)->getSurvivors() as $mutant) { $collection->push($mutant); } return $collection; }