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.

Metric   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getKey() 0 4 1
A getValue() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of PhuninNode.
6
 *
7
 ** (c) 2013 - 2016 Cees-Jan Kiewiet
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace WyriHaximus\PhuninNode;
14
15
/**
16
 * Class Metric
17
 * @package WyriHaximus\PhuninNode
18
 */
19
class Metric
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $key;
25
26
    /**
27
     * @var float
28
     */
29
    protected $value;
30
31
    /**
32
     * @param string $key
33
     * @param float $value
34
     */
35 9
    public function __construct(string $key, float $value)
36
    {
37 9
        $this->key = $key;
38 9
        $this->value = $value;
39 9
    }
40
41
    /**
42
     * @return string
43
     */
44 5
    public function getKey(): string
45
    {
46 5
        return $this->key;
47
    }
48
49
    /**
50
     * @return float
51
     */
52 5
    public function getValue(): float
53
    {
54 5
        return $this->value;
55
    }
56
}
57