1 | <?php |
||
23 | trait RankingSystemListEntry |
||
24 | { |
||
25 | use UUIDEntity; |
||
26 | use SubClassData; |
||
27 | |||
28 | //<editor-fold desc="Fields"> |
||
29 | /** |
||
30 | * @ORM\ManyToOne(targetEntity="\Tfboe\FmLib\Entity\RankingSystemListInterface", inversedBy="entries") |
||
31 | * @var RankingSystemListInterface |
||
32 | */ |
||
33 | private $rankingSystemList; |
||
34 | |||
35 | /** |
||
36 | * @ORM\Column(type="float") |
||
37 | * @var float |
||
38 | */ |
||
39 | private $points; |
||
40 | |||
41 | /** |
||
42 | * @ORM\Column(type="integer") |
||
43 | * @var int |
||
44 | */ |
||
45 | private $numberRankedEntities; |
||
46 | |||
47 | /** |
||
48 | * @ORM\ManyToOne(targetEntity="\Tfboe\FmLib\Entity\PlayerInterface") |
||
49 | * @ORM\JoinColumn(referencedColumnName="player_id") |
||
50 | * @var PlayerInterface |
||
51 | */ |
||
52 | private $player; |
||
53 | //</editor-fold desc="Fields"> |
||
54 | |||
55 | //<editor-fold desc="Constructor"> |
||
56 | //</editor-fold desc="Constructor"> |
||
57 | |||
58 | //<editor-fold desc="Public Methods"> |
||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | public function getNumberRankedEntities(): int |
||
66 | |||
67 | /** |
||
68 | * @return PlayerInterface |
||
69 | */ |
||
70 | public function getPlayer(): PlayerInterface |
||
74 | |||
75 | /** |
||
76 | * @return float |
||
77 | */ |
||
78 | public function getPoints(): float |
||
82 | |||
83 | /** |
||
84 | * @return RankingSystemListInterface |
||
85 | */ |
||
86 | public function getRankingSystemList(): RankingSystemListInterface |
||
90 | |||
91 | /** |
||
92 | * @param int $numberRankedEntities |
||
93 | */ |
||
94 | public function setNumberRankedEntities(int $numberRankedEntities) |
||
98 | |||
99 | /** |
||
100 | * @param PlayerInterface $player |
||
101 | */ |
||
102 | public function setPlayer(PlayerInterface $player) |
||
106 | |||
107 | /** |
||
108 | * @param float $points |
||
109 | */ |
||
110 | public function setPoints(float $points) |
||
114 | |||
115 | /** |
||
116 | * @param RankingSystemListInterface $rankingSystemList |
||
117 | */ |
||
118 | public function setRankingSystemList(RankingSystemListInterface $rankingSystemList) |
||
126 | //</editor-fold desc="Public Methods"> |
||
127 | |||
128 | //<editor-fold desc="Protected Final Methods"> |
||
129 | /** |
||
130 | * RankingSystemListEntry init |
||
131 | * @param string[] $keys list of additional fields |
||
132 | */ |
||
133 | protected final function init(array $keys) |
||
138 | //</editor-fold desc="Protected Final Methods"> |
||
139 | |||
140 | |||
141 | } |