| Current Path : /home/helpink/www/libraries/vendor/spomky-labs/pki-framework/src/X501/MatchingRule/ |
| Current File : /home/helpink/www/libraries/vendor/spomky-labs/pki-framework/src/X501/MatchingRule/BinaryMatch.php |
<?php
declare(strict_types=1);
namespace SpomkyLabs\Pki\X501\MatchingRule;
/**
* Implements binary matching rule.
*
* Generally used only by UnknownAttribute and custom attributes.
*/
final class BinaryMatch extends MatchingRule
{
public function compare(string $assertion, string $value): ?bool
{
return strcmp($assertion, $value) === 0;
}
}