Exemple #1
0
 /**
  * @return int
  */
 protected function getPointsParticipant1()
 {
     if ($this->match instanceof SingleMatch) {
         return $this->match->getPlayer1()->getPoints();
     } else {
         if ($this->match instanceof DoubleMatch) {
             return $this->getPointsForTeam($this->match->getTeamOne());
         }
     }
 }