1 | <?php |
||
28 | trait Phase |
||
29 | { |
||
30 | use NameEntity; |
||
31 | |||
32 | //<editor-fold desc="Fields"> |
||
33 | |||
34 | /** |
||
35 | * @ORM\ManyToOne(targetEntity="\Tfboe\FmLib\Entity\CompetitionInterface", inversedBy="phases") |
||
36 | * @var CompetitionInterface |
||
37 | */ |
||
38 | private $competition; |
||
39 | |||
40 | /** |
||
41 | * @ORM\Column(type="integer") |
||
42 | * @var int |
||
43 | */ |
||
44 | private $phaseNumber; |
||
45 | |||
46 | /** |
||
47 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\QualificationSystem", mappedBy="nextPhase") |
||
48 | * @var Collection|QualificationSystem[] |
||
49 | */ |
||
50 | private $preQualifications; |
||
51 | |||
52 | /** |
||
53 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\QualificationSystem", mappedBy="previousPhase") |
||
54 | * @var Collection|QualificationSystem[] |
||
55 | */ |
||
56 | private $postQualifications; |
||
57 | |||
58 | /** |
||
59 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\Ranking", mappedBy="group", indexBy="uniqueRank") |
||
60 | * @var Collection|Ranking[] |
||
61 | */ |
||
62 | private $rankings; |
||
63 | |||
64 | /** |
||
65 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\MatchInterface", mappedBy="phase", indexBy="matchNumber") |
||
66 | * @var Collection|MatchInterface[] |
||
67 | */ |
||
68 | private $matches; |
||
69 | //</editor-fold desc="Fields"> |
||
70 | |||
71 | //<editor-fold desc="Public Methods"> |
||
72 | /** |
||
73 | * @inheritDoc |
||
74 | */ |
||
75 | public function getChildren(): Collection |
||
79 | |||
80 | /** |
||
81 | * @return CompetitionInterface |
||
82 | */ |
||
83 | public function getCompetition(): CompetitionInterface |
||
87 | |||
88 | /** |
||
89 | * @inheritDoc |
||
90 | */ |
||
91 | public function getLevel(): int |
||
95 | |||
96 | /** |
||
97 | * @inheritDoc |
||
98 | */ |
||
99 | public function getLocalIdentifier() |
||
103 | |||
104 | /** |
||
105 | * @return MatchInterface[]|Collection |
||
106 | */ |
||
107 | public function getMatches() |
||
111 | |||
112 | /** |
||
113 | * @inheritDoc |
||
114 | */ |
||
115 | public function getParent(): ?TournamentHierarchyInterface |
||
119 | |||
120 | /** |
||
121 | * @return int |
||
122 | */ |
||
123 | public function getPhaseNumber(): int |
||
127 | |||
128 | /** |
||
129 | * @return QualificationSystem[]|Collection |
||
130 | */ |
||
131 | public function getPostQualifications(): Collection |
||
135 | |||
136 | /** |
||
137 | * @return QualificationSystem[]|Collection |
||
138 | */ |
||
139 | public function getPreQualifications(): Collection |
||
143 | |||
144 | /** |
||
145 | * @return Ranking[]|Collection |
||
146 | */ |
||
147 | public function getRankings() |
||
151 | |||
152 | /** |
||
153 | * Competition constructor. |
||
154 | */ |
||
155 | public function init() |
||
163 | |||
164 | /** |
||
165 | * @param CompetitionInterface $competition |
||
166 | */ |
||
167 | public function setCompetition(CompetitionInterface $competition) |
||
175 | |||
176 | /** |
||
177 | * @param int $phaseNumber |
||
178 | */ |
||
179 | public function setPhaseNumber(int $phaseNumber) |
||
183 | //</editor-fold desc="Public Methods"> |
||
184 | } |