| 1 | <?php |
||
| 11 | class Statistics extends BaseEntity |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Score |
||
| 15 | */ |
||
| 16 | private $score; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $ranked; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $popularity; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $members; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int |
||
| 35 | */ |
||
| 36 | private $favorites; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Score |
||
| 40 | */ |
||
| 41 | 2 | public function getScore(): ?Score |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param Score $score |
||
| 48 | * |
||
| 49 | * @return Statistics |
||
| 50 | */ |
||
| 51 | 2 | public function setScore(Score $score): Statistics |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | 2 | public function getRanked(): ?int |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @param int $ranked |
||
| 68 | * |
||
| 69 | * @return Statistics |
||
| 70 | */ |
||
| 71 | 2 | public function setRanked(int $ranked): Statistics |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @return int |
||
| 80 | */ |
||
| 81 | 2 | public function getPopularity(): ?int |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @param int $popularity |
||
| 88 | * |
||
| 89 | * @return Statistics |
||
| 90 | */ |
||
| 91 | 2 | public function setPopularity(int $popularity): Statistics |
|
| 97 | |||
| 98 | /** |
||
| 99 | * @return int |
||
| 100 | */ |
||
| 101 | 2 | public function getMembers(): ?int |
|
| 105 | |||
| 106 | /** |
||
| 107 | * @param int $members |
||
| 108 | * |
||
| 109 | * @return Statistics |
||
| 110 | */ |
||
| 111 | 2 | public function setMembers(int $members): Statistics |
|
| 117 | |||
| 118 | /** |
||
| 119 | * @return int |
||
| 120 | */ |
||
| 121 | 2 | public function getFavorites(): ?int |
|
| 125 | |||
| 126 | /** |
||
| 127 | * @param int $favorites |
||
| 128 | * |
||
| 129 | * @return Statistics |
||
| 130 | */ |
||
| 131 | 2 | public function setFavorites(int $favorites): Statistics |
|
| 137 | |||
| 138 | /** |
||
| 139 | * @inheritDoc |
||
| 140 | */ |
||
| 141 | 1 | public function jsonSerialize(): array |
|
| 151 | |||
| 152 | |||
| 153 | } |