コード例 #1
0
 /**
  * Dispatch registered reporters if $report is Valid and ratio condition is met
  *
  * @param BenchmarkReportInterface $report
  */
 public function dispatch(BenchmarkReportInterface $report)
 {
     if (!$report->haveValidResults()) {
         return;
     }
     foreach ($this->reporters as $reporter) {
         if ($report->getFastestSiteToCompareRatio() > $reporter->getTriggerRatio()) {
             $reporter->sendReport($report);
         }
     }
 }