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 ( 9cf620...2a1f44 )
by Dragos
13:25
created

Credentials   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A password() 0 4 1
A masterPassword() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\KontaktIO\Model\Device;
6
7
use JMS\Serializer\Annotation as JMS;
8
9
final class Credentials
10
{
11
    /**
12
     * @var string
13
     *
14
     * @JMS\Type("string")
15
     * @JMS\SerializedName("password")
16
     */
17
    private $password;
18
19
    /**
20
     * @var string
21
     *
22
     * @JMS\Type("string")
23
     * @JMS\SerializedName("masterPassword")
24
     */
25
    private $masterPassword;
26
27
    public function __construct(string $password, string $masterPassword)
28
    {
29
        $this->password = $password;
30
        $this->masterPassword = $masterPassword;
31
    }
32
33
    public function password(): string
34
    {
35
        return $this->password;
36
    }
37
38
    public function masterPassword(): string
39
    {
40
        return $this->masterPassword;
41
    }
42
}
43