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.

PublicKeyUseParameter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\JWX\JWK\Parameter;
6
7
use Sop\JWX\Parameter\Feature\StringParameterValue;
8
9
/**
10
 * Implements 'Public Key Use' parameter.
11
 *
12
 * @see https://tools.ietf.org/html/rfc7517#section-4.2
13
 */
14
class PublicKeyUseParameter extends JWKParameter
15
{
16
    use StringParameterValue;
17
18
    public const USE_SIGNATURE = 'sig';
19
    public const USE_ENCRYPTION = 'enc';
20
21
    /**
22
     * Constructor.
23
     *
24
     * @param string $use Intended use of the public key
25
     */
26 20
    public function __construct(string $use)
27
    {
28 20
        parent::__construct(self::PARAM_PUBLIC_KEY_USE, $use);
29 20
    }
30
}
31