Scientist\Matchers\Matcher::match PHP Метод

match() публичный Метод

Determine whether two values match.
public match ( mixed $control, mixed $trial ) : boolean
$control mixed
$trial mixed
Результат boolean
    public function match($control, $trial);

Usage Example

Пример #1
0
 /**
  * Determine whether trial results match the control.
  *
  * @param \Scientist\Matchers\Matcher $matcher
  * @param \Scientist\Result           $control
  * @param \Scientist\Result[]         $trials
  */
 protected function determineMatches(Matcher $matcher, Result $control, array $trials = [])
 {
     foreach ($trials as $trial) {
         if ($matcher->match($control->getValue(), $trial->getValue())) {
             $trial->setMatch(true);
         }
     }
 }
All Usage Examples Of Scientist\Matchers\Matcher::match
Matcher