lib/3rdParty/composer/spomky-labs/pki-framework/src/X501/MatchingRule/BinaryMatch.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace SpomkyLabs\Pki\X501\MatchingRule; |
| 6 | |
| 7 | /** |
| 8 | * Implements binary matching rule. |
| 9 | * |
| 10 | * Generally used only by UnknownAttribute and custom attributes. |
| 11 | */ |
| 12 | final class BinaryMatch extends MatchingRule |
| 13 | { |
| 14 | public function compare(string $assertion, string $value): bool |
| 15 | { |
| 16 | return strcmp($assertion, $value) === 0; |
| 17 | } |
| 18 | } |