• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattiabasone / minepic / 4098783173

pending completion
4098783173

push

github

GitHub
Remove swoole and upgrade dependencies (#20)

738 of 864 relevant lines covered (85.42%)

4.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.45
/app/Minecraft/MojangAccount.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Minepic\Minecraft;
6

7
use Illuminate\Contracts\Support\Arrayable;
8

9
class MojangAccount implements Arrayable
10
{
11
    /**
12
     * MinecraftAccount constructor.
13
     *
14
     * @param string $uuid
15
     * @param string $username
16
     * @param string $skin
17
     * @param string $cape
18
     */
19
    public function __construct(
20
        private readonly string $uuid,
21
        private readonly string $username,
22
        private readonly string $skin = '',
23
        private readonly string $cape = ''
24
    ) {
25
    }
1✔
26

27
    /**
28
     * @return string
29
     */
30
    public function getUuid(): string
31
    {
32
        return $this->uuid;
1✔
33
    }
34

35
    /**
36
     * @return string
37
     */
38
    public function getUsername(): string
39
    {
40
        return $this->username;
1✔
41
    }
42

43
    /**
44
     * @return string
45
     */
46
    public function getSkin(): ?string
47
    {
48
        return $this->skin;
1✔
49
    }
50

51
    /**
52
     * @return string
53
     */
54
    public function getCape(): ?string
55
    {
56
        return $this->cape;
1✔
57
    }
58

59
    /**
60
     * @return array
61
     */
62
    public function toArray(): array
63
    {
64
        return [
×
65
            'uuid' => $this->uuid,
×
66
            'username' => $this->username,
×
67
            'skin' => $this->skin,
×
68
            'cape' => $this->cape,
×
69
        ];
×
70
    }
71
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc