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.

Parameter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 32
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 307
    public function name(): string
30
    {
31 307
        return $this->_name;
32
    }
33
34
    /**
35
     * Get the parameter value.
36
     *
37
     * @return mixed
38
     */
39 287
    public function value()
40
    {
41 287
        return $this->_value;
42
    }
43
}
44