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.

Device::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\Estimote\Model;
6
7
use JMS\Serializer\Annotation as JMS;
8
use Speicher210\Estimote\Model\Device\PendingSettings;
9
use Speicher210\Estimote\Model\Device\Settings;
10
11
/**
12
 * Model representing a device.
13
 */
14
class Device
15
{
16
    /**
17
     * @var string
18
     *
19
     * @JMS\Type("string")
20
     * @JMS\SerializedName("identifier")
21
     */
22
    private $identifier;
23
24
    /**
25
     * @var Settings
26
     *
27
     * @JMS\Type("Speicher210\Estimote\Model\Device\Settings")
28
     * @JMS\SerializedName("settings")
29
     */
30
    private $settings;
31
32
    /**
33
     * @var PendingSettings
34
     *
35
     * @JMS\Type("Speicher210\Estimote\Model\Device\PendingSettings")
36
     * @JMS\SerializedName("pending_settings")
37
     */
38
    private $pendingSettings;
39
40
    public function __construct(string $identifier, Settings $settings, ?PendingSettings $pendingSettings)
41
    {
42
        $this->identifier = $identifier;
43
        $this->settings = $settings;
44
        $this->pendingSettings = $pendingSettings;
45
    }
46
47
    public function identifier(): string
48
    {
49
        return $this->identifier;
50
    }
51
52
    public function settings(): Settings
53
    {
54
        return $this->settings;
55
    }
56
57
    public function pendingSettings(): ?PendingSettings
58
    {
59
        return $this->pendingSettings;
60
    }
61
}
62