Debian Codegraph @

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

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace SpomkyLabs\Pki\X501\MatchingRule;
6
7 /**
8 * Base class for attribute matching rules.
9 *
10 * @see https://tools.ietf.org/html/rfc4517#section-4
11 */
12 abstract class MatchingRule
13 {
14 /**
15 * Compare attribute value to assertion.
16 *
17 * @param string $assertion Value to assert
18 * @param string $value Attribute value
19 *
20 * @return null|bool True if value matches. Null shall be returned if match
21 * evaluates to Undefined.
22 */
23 abstract public function compare(string $assertion, string $value): ?bool;
24 }