Total Complexity | 5 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class MinecraftServicesProfileResponse { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $id; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $name; |
||
20 | |||
21 | /** |
||
22 | * @var MinecraftServicesProfileSkin[] |
||
23 | */ |
||
24 | private $skins; |
||
25 | |||
26 | /** |
||
27 | * @var MinecraftServicesProfileCape[] |
||
28 | */ |
||
29 | private $capes; |
||
30 | |||
31 | /** |
||
32 | * @param string $id |
||
33 | * @param string $name |
||
34 | * @param MinecraftServicesProfileSkin[] $skins |
||
35 | * @param MinecraftServicesProfileCape[] $capes |
||
36 | */ |
||
37 | 1 | public function __construct(string $id, string $name, array $skins, array $capes) { |
|
38 | 1 | $this->id = $id; |
|
39 | 1 | $this->name = $name; |
|
40 | 1 | $this->skins = $skins; |
|
41 | 1 | $this->capes = $capes; |
|
42 | 1 | } |
|
43 | |||
44 | 1 | public function getId(): string { |
|
45 | 1 | return $this->id; |
|
46 | } |
||
47 | |||
48 | 1 | public function getName(): string { |
|
49 | 1 | return $this->name; |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return MinecraftServicesProfileSkin[] |
||
54 | */ |
||
55 | 1 | public function getSkins(): array { |
|
56 | 1 | return $this->skins; |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return MinecraftServicesProfileCape[] |
||
61 | */ |
||
62 | 1 | public function getCapes(): array { |
|
64 | } |
||
65 | |||
66 | } |
||
67 |