Hal\MutaTesting\Mutation\Consolidation\SourceFileService::getMutants PHP Method

getMutants() public method

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