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 ( 11b52a...ce507f )
by Joni
04:03
created

PBES2CountParameter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A fromJSONValue() 0 3 1
1
<?php
2
3
namespace JWX\JWT\Parameter;
4
5
6
/**
7
 * Implements 'PBES2 Count' parameter.
8
 *
9
 * @link https://tools.ietf.org/html/rfc7518#section-4.8.1.2
10
 */
11
class PBES2CountParameter extends JWTParameter
12
{
13
	/**
14
	 * Constructor
15
	 *
16
	 * @param int $count
17
	 */
18 10
	public function __construct($count) {
19 10
		parent::__construct(self::PARAM_PBES2_COUNT, intval($count));
20 10
	}
21
	
22
	/**
23
	 * Initialize from a JSON value.
24
	 *
25
	 * @param int $value
26
	 * @return self
27
	 */
28 3
	public static function fromJSONValue($value) {
29 3
		return new self(intval($value));
30
	}
31
}
32