AccessIdentityAttributeValue::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
nc 1
cc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace X509\AttributeCertificate\Attribute;
6
7
use X509\GeneralName\GeneralName;
8
9
/**
10
 * Implements value for 'Access Identity' attribute.
11
 *
12
 * @link https://tools.ietf.org/html/rfc5755#section-4.4.2
13
 */
14
class AccessIdentityAttributeValue extends SvceAuthInfo
15
{
16
    const OID = "1.3.6.1.5.5.7.10.2";
17
    
18
    /**
19
     * Constructor.
20
     *
21
     * @param GeneralName $service
22
     * @param GeneralName $ident
23
     */
24 7
    public function __construct(GeneralName $service, GeneralName $ident)
25
    {
26 7
        parent::__construct($service, $ident, null);
27 7
        $this->_oid = self::OID;
28 7
    }
29
}
30