Passed
Push — master ( e0d87d...28f5a1 )
by Mattia
04:18
created

MojangAccount::getSkin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Minecraft;
6
7
/**
8
 * Class MojangAccount.
9
 */
10
class MojangAccount
11
{
12
    /**
13
     * UUID of the account.
14
     *
15
     * @var string
16
     */
17
    private string $uuid;
18
19
    /**
20
     * Username of the account.
21
     *
22
     * @var string
23
     */
24
    private string $username;
25
26
    /**
27
     * Skin.
28
     *
29
     * @var string
30
     */
31
    private string $skin;
32
33
    /**
34
     * Cape.
35
     *
36
     * @var string
37
     */
38
    private string $cape;
39
40
    /**
41
     * MinecraftAccount constructor.
42
     *
43
     * @param string $uuid
44
     * @param string $username
45
     * @param string $skin
46
     * @param string $cape
47
     */
48
    public function __construct(string $uuid, string $username, string $skin = '', string $cape = '')
49
    {
50
        $this->uuid = $uuid;
51
        $this->username = $username;
52
        $this->skin = $skin;
53
        $this->cape = $cape;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getUuid(): string
60
    {
61
        return $this->uuid;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getUsername(): string
68
    {
69
        return $this->username;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getSkin(): ?string
76
    {
77
        return $this->skin;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getCape(): ?string
84
    {
85
        return $this->cape;
86
    }
87
}
88