/** * @param TeamStat $stat * @return TeamInfo */ private function getTeam(TeamStat $stat) { $team = new TeamInfo(); $team->setId($stat->getId()); $team->setClub($stat->getClub()); $team->setName($stat->getName()); $team->setCountry($stat->getCountry()); $team->setGroup($stat->getGroup()); return $team; }