예제 #1
0
 /**
  * Calculates new rankings and returns in RatingsOutput
  * @return RatingsOutput represents new rankings
  */
 public function calculate()
 {
     if ($this->ratingsInput->isNeutralVenue()) {
         $calculate = new CalculateNeutralVenue($this->ratingsInput);
         return $calculate->getOutput();
     }
     $calculate = new Calculate($this->ratingsInput);
     return $calculate->getOutput();
 }