Scientist\Intern::determineMatches PHP Method

determineMatches() protected method

Determine whether trial results match the control.
protected determineMatches ( Scientist\Matchers\Matcher $matcher, Result $control, array $trials = [] )
$matcher Scientist\Matchers\Matcher
$control Result
$trials array
    protected function determineMatches(Matcher $matcher, Result $control, array $trials = [])
    {
        foreach ($trials as $trial) {
            if ($matcher->match($control->getValue(), $trial->getValue())) {
                $trial->setMatch(true);
            }
        }
    }