Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
platform360
/
vendor
/
spomky-labs
/
pki-framework
/
src
/
X501
/
MatchingRule
/
File Content:
StringPrepMatchingRule.php
<?php declare (strict_types=1); namespace Platform360\SpomkyLabs\Pki\X501\MatchingRule; use Platform360\SpomkyLabs\Pki\X501\StringPrep\StringPreparer; /** * Base class for matching rules employing string preparement semantics. */ abstract class StringPrepMatchingRule extends MatchingRule { protected function __construct(private readonly StringPreparer $preparer) { } public function compare(string $assertion, string $value) : ?bool { $assertion = $this->preparer->prepare($assertion); $value = $this->preparer->prepare($value); return \strcmp($assertion, $value) === 0; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
BinaryMatch.php
384 bytes
0644
CaseExactMatch.php
641 bytes
0644
CaseIgnoreMatch.php
668 bytes
0644
MatchingRule.php
589 bytes
0644
StringPrepMatchingRule.php
629 bytes
0644
N4ST4R_ID | Naxtarrr