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.

IBeacon::nonStrictModeEnabled()   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 IBeacon
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 string
29
     *
30
     * @JMS\Type("string")
31
     * @JMS\SerializedName("uuid")
32
     */
33
    private $uuid;
34
35
    /**
36
     * @var integer
37
     *
38
     * @JMS\Type("integer")
39
     * @JMS\SerializedName("major")
40
     */
41
    private $major;
42
43
    /**
44
     * @var integer
45
     *
46
     * @JMS\Type("integer")
47
     * @JMS\SerializedName("minor")
48
     */
49
    private $minor;
50
51
    /**
52
     * @var integer
53
     *
54
     * @JMS\Type("integer")
55
     * @JMS\SerializedName("power")
56
     */
57
    private $power;
58
59
    /**
60
     * Broadcasting interval.
61
     *
62
     * @var integer
63
     *
64
     * @JMS\Type("integer")
65
     * @JMS\SerializedName("interval")
66
     */
67
    private $interval;
68
69
    /**
70
     * @var bool
71
     *
72
     * @JMS\Type("boolean")
73
     * @JMS\SerializedName("non_strict_mode_enabled")
74
     */
75
    private $nonStrictModeEnabled;
76
77
    public function __construct(
78
        int $index,
79
        ?bool $enabled,
80
        ?string $uuid,
81
        ?int $major,
82
        ?int $minor,
83
        ?int $power,
84
        ?int $interval,
85
        ?bool $nonStrictModeEnabled
86
    ) {
87
        $this->index = $index;
88
        $this->enabled = $enabled;
89
        $this->uuid = $uuid;
90
        $this->major = $major;
91
        $this->minor = $minor;
92
        $this->power = $power;
93
        $this->interval = $interval;
94
        $this->nonStrictModeEnabled = $nonStrictModeEnabled;
95
    }
96
97
    public function index(): int
98
    {
99
        return $this->index;
100
    }
101
102
    public function isEnabled(): ?bool
103
    {
104
        return $this->enabled;
105
    }
106
107
    public function uuid(): ?string
108
    {
109
        return $this->uuid;
110
    }
111
112
    public function major(): ?int
113
    {
114
        return $this->major;
115
    }
116
117
    public function minor(): ?int
118
    {
119
        return $this->minor;
120
    }
121
122
    public function power(): ?int
123
    {
124
        return $this->power;
125
    }
126
127
    public function interval(): ?int
128
    {
129
        return $this->interval;
130
    }
131
132
    public function nonStrictModeEnabled(): ?bool
133
    {
134
        return $this->nonStrictModeEnabled;
135
    }
136
}
137