Debian Codegraph @

lib/3rdParty/composer/spomky-labs/pki-framework/src/X501/MatchingRule/CaseExactMatch.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace SpomkyLabs\Pki\X501\MatchingRule;
6
7 use SpomkyLabs\Pki\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 final class CaseExactMatch extends StringPrepMatchingRule
15 {
16 /**
17 * @param int $stringType ASN.1 string type tag
18 */
19 private function __construct(int $stringType)
20 {
21 parent::__construct(StringPreparer::forStringType($stringType));
22 }
23
24 public static function create(int $stringType): self
25 {
26 return new self($stringType);
27 }
28 }