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.
Passed
Branch php72 (880eb0)
by Joni
05:58
created

Parameter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 34
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A value() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\JWX\Parameter;
6
7
/**
8
 * Base class for JWT and JWK parameters.
9
 */
10
abstract class Parameter
11
{
12
    /**
13
     * Parameter name.
14
     *
15
     * @var string
16
     */
17
    protected $_name;
18
19
    /**
20
     * Parameter value.
21
     *
22
     * @var mixed
23
     */
24
    protected $_value;
25
26
    /**
27
     * Get the parameter name.
28
     *
29
     * @return string
30
     */
31 306
    public function name(): string
32
    {
33 306
        return $this->_name;
34
    }
35
36
    /**
37
     * Get the parameter value.
38
     *
39
     * @return mixed
40
     */
41 286
    public function value()
42
    {
43 286
        return $this->_value;
44
    }
45
}
46