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::interval()   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\PendingSettings\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 bool
21
     *
22
     * @JMS\Type("boolean")
23
     * @JMS\SerializedName("enabled")
24
     */
25
    private $enabled;
26
27
    /**
28
     * @var integer
29
     *
30
     * @JMS\Type("integer")
31
     * @JMS\SerializedName("power")
32
     */
33
    private $power;
34
35
    /**
36
     * Broadcasting interval.
37
     *
38
     * @var integer
39
     *
40
     * @JMS\Type("integer")
41
     * @JMS\SerializedName("interval")
42
     */
43
    private $interval;
44
45
    /**
46
     * @var string
47
     *
48
     * @JMS\Type("string")
49
     * @JMS\SerializedName("url")
50
     */
51
    private $url;
52
53
    public function __construct(int $index, ?bool $enabled, ?int $power, ?int $interval, ?string $url)
54
    {
55
        $this->index = $index;
56
        $this->enabled = $enabled;
57
        $this->power = $power;
58
        $this->interval = $interval;
59
        $this->url = $url;
60
    }
61
62
    public function index(): int
63
    {
64
        return $this->index;
65
    }
66
67
    public function isEnabled(): ?bool
68
    {
69
        return $this->enabled;
70
    }
71
72
    public function power(): ?int
73
    {
74
        return $this->power;
75
    }
76
77
    public function interval(): ?int
78
    {
79
        return $this->interval;
80
    }
81
82
    public function url(): ?string
83
    {
84
        return $this->url;
85
    }
86
}
87