| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MinecraftServicesProfileSkin { |
||
| 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 $variant; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | */ |
||
| 34 | private $alias; |
||
| 35 | |||
| 36 | 1 | public function __construct(string $id, string $state, string $url, string $variant, ?string $alias) { |
|
| 37 | 1 | $this->id = $id; |
|
| 38 | 1 | $this->state = $state; |
|
| 39 | 1 | $this->url = $url; |
|
| 40 | 1 | $this->variant = $variant; |
|
| 41 | 1 | $this->alias = $alias; |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | 1 | public function getId(): string { |
|
| 45 | 1 | return $this->id; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * TODO: figure out literal for not active state |
||
| 50 | * @return 'ACTIVE' |
||
|
|
|||
| 51 | */ |
||
| 52 | 1 | public function getState(): string { |
|
| 54 | } |
||
| 55 | |||
| 56 | 1 | public function getUrl(): string { |
|
| 57 | 1 | return $this->url; |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return 'CLASSIC'|'SLIM' |
||
| 62 | */ |
||
| 63 | 1 | public function getVariant(): string { |
|
| 64 | 1 | return $this->variant; |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Doesn't show up for some reason for some accounts |
||
| 69 | */ |
||
| 70 | 1 | public function getAlias(): ?string { |
|
| 72 | } |
||
| 73 | |||
| 74 | } |
||
| 75 |