CoreFiles by mySites.guru
MatchingRule.php24 lines, 576 bytes, from Joomla_6.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta2
md5
221df4ab563a5ce1a19115b6e66a089d
sha1
9d9099b9b388cd2103ca11008377485c044c46f3
sha256
33daa2f66816854e497afd00ecf2fd2f95737d1aeabba414838a109280b7616b
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X501\MatchingRule;

/**
 * Base class for attribute matching rules.
 *
 * @see https://tools.ietf.org/html/rfc4517#section-4
 */
abstract class MatchingRule
{
    /**
     * Compare attribute value to assertion.
     *
     * @param string $assertion Value to assert
     * @param string $value Attribute value
     *
     * @return null|bool True if value matches. Null shall be returned if match
     * evaluates to Undefined.
     */
    abstract public function compare(string $assertion, string $value): ?bool;
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.