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 ( ce507f...5e3b1d )
by Joni
04:09
created

KeyOperationsParameter::fromJSONValue()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 2
1
<?php
2
3
namespace JWX\JWK\Parameter;
4
5
use JWX\Parameter\Feature\ArrayParameterValue;
6
7
8
/**
9
 * Implements 'Key Operations' parameter.
10
 *
11
 * @link https://tools.ietf.org/html/rfc7517#section-4.3
12
 */
13
class KeyOperationsParameter extends JWKParameter
14
{
15
	use ArrayParameterValue;
16
	
17
	const OP_SIGN = "sign";
18
	const OP_VERIFY = "verify";
19
	const OP_ENCRYPT = "encrypt";
20
	const OP_DECRYPT = "decrypt";
21
	const OP_WRAP_KEY = "wrapKey";
22
	const OP_UNWRAP_KEY = "unwrapKey";
23
	const OP_DERIVE_KEY = "deriveKey";
24
	const OP_DERIVE_BITS = "deriveBits";
25
	
26
	/**
27
	 * Constructor
28
	 *
29
	 * @param string ...$ops Key operations
30
	 */
31 2
	public function __construct(...$ops) {
32 2
		parent::__construct(self::PARAM_KEY_OPERATIONS, $ops);
33 2
	}
34
}
35