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::rdn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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