Issues (3)

src/Response/MinecraftServicesProfileSkin.php (2 issues)

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 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'
0 ignored issues
show
Documentation Bug introduced by
The doc comment 'ACTIVE' at position 0 could not be parsed: Unknown type name ''ACTIVE'' at position 0 in 'ACTIVE'.
Loading history...
51
     */
52 1
    public function getState(): string {
53 1
        return $this->state;
54
    }
55
56 1
    public function getUrl(): string {
57 1
        return $this->url;
58
    }
59
60
    /**
61
     * @return 'CLASSIC'|'SLIM'
0 ignored issues
show
Documentation Bug introduced by
The doc comment 'CLASSIC'|'SLIM' at position 0 could not be parsed: Unknown type name ''CLASSIC'' at position 0 in 'CLASSIC'|'SLIM'.
Loading history...
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 {
71 1
        return $this->alias;
72
    }
73
74
}
75