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.
Completed
Push — master ( ecf505...a03304 )
by Dragos
12:40
created

Update   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A uniqueId() 0 4 1
A physical() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\KontaktIO\Model\Device;
6
7
use Speicher210\KontaktIO\Model\Device\Update\Physical;
8
9
final class Update
10
{
11
    private $uniqueId;
12
13
    private $physical;
14
15
    public function __construct(string $uniqueId, ?Physical $physical)
16
    {
17
        $this->uniqueId = $uniqueId;
18
        $this->physical = $physical;
19
    }
20
21
    public function uniqueId(): string
22
    {
23
        return $this->uniqueId;
24
    }
25
26
    public function physical(): Physical
27
    {
28
        return $this->physical;
29
    }
30
}
31