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 ( 8d0cea...d663c8 )
by Christian
01:59
created

Session   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A getKey() 0 4 1
A getSubscriber() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\LastFm\Session;
13
14
final class Session implements SessionInterface
15
{
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
21
    /**
22
     * @var string
23
     */
24
    private $key;
25
26
    /**
27
     * @var int
28
     */
29
    private $subscriber;
30
31
    /**
32
     * @param string $name
33
     * @param string $key
34
     * @param int    $subscriber
35
     */
36
    public function __construct(string $name, string $key, int $subscriber = 0)
37
    {
38
        $this->name       = $name;
39
        $this->key        = $key;
40
        $this->subscriber = $subscriber;
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function getName(): string
47
    {
48
        return $this->name;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function getKey(): string
55
    {
56
        return $this->key;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function getSubscriber(): int
63
    {
64
        return $this->subscriber;
65
    }
66
}
67