1 | <?php |
||
25 | trait RankingSystemList |
||
26 | { |
||
27 | use UUIDEntity; |
||
28 | |||
29 | //<editor-fold desc="Fields"> |
||
30 | /** |
||
31 | * @ORM\ManyToOne(targetEntity="\Tfboe\FmLib\Entity\RankingSystemInterface", inversedBy="lists") |
||
32 | * @var RankingSystemInterface |
||
33 | */ |
||
34 | private $rankingSystem; |
||
35 | /** |
||
36 | * @ORM\Column(type="boolean") |
||
37 | * @var bool |
||
38 | */ |
||
39 | private $current; |
||
40 | /** |
||
41 | * @ORM\Column(type="datetime") |
||
42 | * @var \DateTime |
||
43 | */ |
||
44 | private $lastEntryTime; |
||
45 | |||
46 | /** |
||
47 | * @ORM\OneToMany(targetEntity="\Tfboe\FmLib\Entity\RankingSystemListEntryInterface", mappedBy="rankingSystemList", |
||
48 | * indexBy="player_id") |
||
49 | * @var RankingSystemListEntryInterface[]|Collection |
||
50 | */ |
||
51 | private $entries; |
||
52 | //</editor-fold desc="Fields"> |
||
53 | |||
54 | //<editor-fold desc="Constructor"> |
||
55 | //</editor-fold desc="Constructor"> |
||
56 | |||
57 | //<editor-fold desc="Public Methods"> |
||
58 | /** |
||
59 | * @return RankingSystemListEntryInterface[]|Collection |
||
60 | */ |
||
61 | public function getEntries(): Collection |
||
65 | |||
66 | /** |
||
67 | * @return \DateTime |
||
68 | */ |
||
69 | public function getLastEntryTime(): \DateTime |
||
73 | |||
74 | /** |
||
75 | * @return RankingSystemInterface |
||
76 | */ |
||
77 | public function getRankingSystem(): RankingSystemInterface |
||
81 | |||
82 | /** |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function isCurrent(): bool |
||
89 | |||
90 | /** |
||
91 | * @param bool $current |
||
92 | */ |
||
93 | public function setCurrent(bool $current) |
||
97 | |||
98 | /** |
||
99 | * @param \DateTime $lastEntryTime |
||
100 | */ |
||
101 | public function setLastEntryTime(\DateTime $lastEntryTime) |
||
105 | |||
106 | /** |
||
107 | * @param RankingSystemInterface $rankingSystem |
||
108 | */ |
||
109 | public function setRankingSystem(RankingSystemInterface $rankingSystem) |
||
117 | //</editor-fold desc="Public Methods"> |
||
118 | |||
119 | //<editor-fold desc="Protected Final Methods"> |
||
120 | /** |
||
121 | * RankingSystemList init |
||
122 | */ |
||
123 | protected final function init() |
||
129 | //</editor-fold desc="Protected Final Methods"> |
||
130 | } |