public function getMutants($file) { $collection = new MutationCollection(); foreach ($this->mutations as $mutant) { if ($file === $mutant->getSourceFile()) { $collection->push($mutant); } } return $collection; }