1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 18:17:28 +02:00

Page de paiement (en cours)

This commit is contained in:
Yohann
2020-01-01 21:53:46 +01:00
parent 69c453c408
commit d81ad02235
7 changed files with 95 additions and 24 deletions

View File

@ -110,6 +110,14 @@ class Team
return $this->tournament;
}
/**
* @return Tournament
*/
public function getEffectiveTournament()
{
return $this->isSelectedForFinal() ? Tournament::getFinalTournament() : Tournament::fromId($this->getTournamentId());
}
public function setTournamentId($tournament)
{
global $DB;