1 | <?php |
||
25 | trait Team |
||
26 | { |
||
27 | use UUIDEntity; |
||
28 | use NameEntity; |
||
29 | |||
30 | //<editor-fold desc="Fields"> |
||
31 | /** |
||
32 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\TeamMembershipInterface", mappedBy="team", indexBy="id") |
||
33 | * @var Collection|TeamMembershipInterface[] |
||
34 | */ |
||
35 | private $memberships; |
||
36 | |||
37 | /** |
||
38 | * @return Collection|TeamMembershipInterface[] |
||
39 | */ |
||
40 | public function getMemberships(): Collection |
||
44 | |||
45 | /** |
||
46 | * @ORM\ManyToOne(targetEntity="\Tfboe\FmLib\Entity\CompetitionInterface", inversedBy="teams") |
||
47 | * @var CompetitionInterface |
||
48 | */ |
||
49 | private $competition; |
||
50 | |||
51 | /** |
||
52 | * @ORM\Column(name="`rank`", type="integer") |
||
53 | * @var int |
||
54 | */ |
||
55 | private $rank; |
||
56 | |||
57 | /** |
||
58 | * @ORM\Column(type="integer") |
||
59 | * @var int |
||
60 | */ |
||
61 | private $startNumber; |
||
62 | //</editor-fold desc="Fields"> |
||
63 | |||
64 | //<editor-fold desc="Constructor"> |
||
65 | //</editor-fold desc="Constructor"> |
||
66 | |||
67 | //<editor-fold desc="Public Methods"> |
||
68 | /** |
||
69 | * @return CompetitionInterface |
||
70 | */ |
||
71 | public function getCompetition(): CompetitionInterface |
||
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getRank(): int |
||
83 | |||
84 | /** |
||
85 | * @return int |
||
86 | */ |
||
87 | public function getStartNumber(): int |
||
91 | |||
92 | /** |
||
93 | * @param CompetitionInterface $competition |
||
94 | */ |
||
95 | public function setCompetition(CompetitionInterface $competition) |
||
103 | |||
104 | /** |
||
105 | * @param int $rank |
||
106 | */ |
||
107 | public function setRank(int $rank) |
||
111 | |||
112 | /** |
||
113 | * @param int $startNumber |
||
114 | */ |
||
115 | public function setStartNumber(int $startNumber) |
||
119 | //</editor-fold desc="Public Methods"> |
||
120 | |||
121 | //<editor-fold desc="Protected Final Methods"> |
||
122 | /** |
||
123 | * Team init |
||
124 | */ |
||
125 | protected final function init() |
||
130 | //</editor-fold desc="Protected Final Methods"> |
||
131 | } |