GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

EddystoneUrl::url()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\Estimote\Model\Device\Settings\Advertisers;
6
7
use JMS\Serializer\Annotation as JMS;
8
9
final class EddystoneUrl
10
{
11
    /**
12
     * @var int
13
     *
14
     * @JMS\Type("integer")
15
     * @JMS\SerializedName("index")
16
     */
17
    private $index;
18
19
    /**
20
     * @var string
21
     *
22
     * @JMS\Type("string")
23
     * @JMS\SerializedName("name")
24
     */
25
    private $name;
26
27
    /**
28
     * @var bool
29
     *
30
     * @JMS\Type("boolean")
31
     * @JMS\SerializedName("enabled")
32
     */
33
    private $enabled;
34
35
    /**
36
     * @var integer
37
     *
38
     * @JMS\Type("integer")
39
     * @JMS\SerializedName("power")
40
     */
41
    private $power;
42
43
    /**
44
     * Broadcasting interval.
45
     *
46
     * @var integer
47
     *
48
     * @JMS\Type("integer")
49
     * @JMS\SerializedName("interval")
50
     */
51
    private $interval;
52
53
    /**
54
     * @var string
55
     *
56
     * @JMS\Type("string")
57
     * @JMS\SerializedName("url")
58
     */
59
    private $url;
60
61
    public function __construct(int $index, string $name, bool $enabled, int $power, int $interval, string $url)
62
    {
63
        $this->index = $index;
64
        $this->name = $name;
65
        $this->enabled = $enabled;
66
        $this->power = $power;
67
        $this->interval = $interval;
68
        $this->url = $url;
69
    }
70
71
    public function index(): int
72
    {
73
        return $this->index;
74
    }
75
76
    public function name(): string
77
    {
78
        return $this->name;
79
    }
80
81
    public function isEnabled(): bool
82
    {
83
        return $this->enabled;
84
    }
85
86
    public function power(): int
87
    {
88
        return $this->power;
89
    }
90
91
    public function interval(): int
92
    {
93
        return $this->interval;
94
    }
95
96
    public function url(): string
97
    {
98
        return $this->url;
99
    }
100
}
101