CaseExactMatch::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Sop\X501\MatchingRule;
6
7
use Sop\X501\StringPrep\StringPreparer;
8
9
/**
10
 * Implements 'caseExactMatch' matching rule.
11
 *
12
 * @see https://tools.ietf.org/html/rfc4517#section-4.2.4
13
 */
14
class CaseExactMatch extends StringPrepMatchingRule
15
{
16
    /**
17
     * Constructor.
18
     *
19
     * @param int $string_type ASN.1 string type tag
20
     */
21 8
    public function __construct(int $string_type)
22
    {
23 8
        parent::__construct(StringPreparer::forStringType($string_type));
24 8
    }
25
}
26