Total Complexity | 7 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class BeatMapUploader |
||
6 | { |
||
7 | private object $uploader; |
||
8 | |||
9 | /** |
||
10 | * Create a new BeatMapUploader object |
||
11 | * @param object $uploader |
||
12 | */ |
||
13 | public function __construct(object $uploader) |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * Get uploader ID |
||
20 | * @return int |
||
21 | */ |
||
22 | public function getId(): int |
||
23 | { |
||
24 | return $this->uploader->id; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get uploader name |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getName(): string |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get uploader hash |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getHash(): string |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Get uploader avatar link |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getAvatarURL(): string |
||
50 | { |
||
51 | return $this->uploader->avatar; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Get uploader type |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getType(): string |
||
59 | { |
||
60 | return $this->uploader->type; |
||
61 | } |
||
62 | |||
63 | |||
64 | /** |
||
65 | * Is uploader unique set ? |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function isUniqueSet(): bool |
||
71 | } |
||
72 | } |