1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | |||
4 | namespace Ely\Mojang\Response; |
||
5 | |||
6 | /** |
||
7 | * @see https://wiki.vg/Mojang_API#Profile_Information |
||
8 | */ |
||
9 | class MinecraftServicesProfileCape { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $id; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $state; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $url; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $alias; |
||
30 | |||
31 | 1 | public function __construct(string $id, string $state, string $url, string $alias) { |
|
32 | 1 | $this->id = $id; |
|
33 | 1 | $this->state = $state; |
|
34 | 1 | $this->url = $url; |
|
35 | 1 | $this->alias = $alias; |
|
36 | 1 | } |
|
37 | |||
38 | 1 | public function getId(): string { |
|
39 | 1 | return $this->id; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * TODO: figure out literal for not active state |
||
44 | * @return 'ACTIVE' |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
45 | */ |
||
46 | 1 | public function getState(): string { |
|
47 | 1 | return $this->state; |
|
48 | } |
||
49 | |||
50 | 1 | public function getUrl(): string { |
|
51 | 1 | return $this->url; |
|
52 | } |
||
53 | |||
54 | 1 | public function getAlias(): string { |
|
55 | 1 | return $this->alias; |
|
56 | } |
||
57 | |||
58 | } |
||
59 |