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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 34
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A value() 0 3 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