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 ( 584c7d...11b52a )
by Joni
04:10
created

Parameter::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace JWX\Parameter;
4
5
6
/**
7
 * Base class for JWT and JWK parameters.
8
 */
9
abstract class Parameter
10
{
11
	/**
12
	 * Parameter name.
13
	 *
14
	 * @var string $_name
15
	 */
16
	protected $_name;
17
	
18
	/**
19
	 * Parameter value.
20
	 *
21
	 * @var mixed $_value
22
	 */
23
	protected $_value;
24
	
25
	/**
26
	 * Get the parameter name.
27
	 *
28
	 * @return string
29
	 */
30 278
	public function name() {
31 278
		return $this->_name;
32
	}
33
	
34
	/**
35
	 * Get the parameter value.
36
	 *
37
	 * @return mixed
38
	 */
39 255
	public function value() {
40 255
		return $this->_value;
41
	}
42
}
43