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::fromJSONValue()   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 1
crap 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