/** * @param Team $team * * @return float */ protected function getPointsForTeam($team) { $sum = $team->getAttackingPlayer()->getPoints() + $team->getDefendingPlayer()->getPoints(); return round($sum / 2); }