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.
Test Failed
Push — master ( 405cf3...79c9ba )
by Joni
04:48
created

RelativeName   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 40
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A rdn() 0 3 1
A __construct() 0 4 1
A _valueASN1() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\X509\Certificate\Extension\DistributionPoint;
6
7
use Sop\ASN1\Element;
8
use Sop\X501\ASN1\RDN;
9
10
/**
11
 * Implements 'nameRelativeToCRLIssuer' ASN.1 CHOICE type of *DistributionPointName*
12
 * used by 'CRL Distribution Points' certificate extension.
13
 *
14
 * @see https://tools.ietf.org/html/rfc5280#section-4.2.1.13
15
 */
16
class RelativeName extends DistributionPointName
17
{
18
    /**
19
     * Relative distinguished name.
20
     *
21
     * @var RDN
22
     */
23
    protected $_rdn;
24
25
    /**
26
     * Constructor.
27
     *
28
     * @param RDN $rdn
29
     */
30
    public function __construct(RDN $rdn)
31 12
    {
32
        $this->_tag = self::TAG_RDN;
33 12
        $this->_rdn = $rdn;
34 12
    }
35 12
36
    /**
37
     * Get RDN.
38
     *
39
     * @return RDN
40
     */
41
    public function rdn(): RDN
42 2
    {
43
        return $this->_rdn;
44 2
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    protected function _valueASN1(): Element
50
    {
51
        return $this->_rdn->toASN1();
52 16
    }
53
}
54