CoreFiles by mySites.guru
CaseIgnoreMatch.php30 lines, 666 bytes, from Joomla_5.4.10-Stable-Full_Package.zip
Raw History Compare with 5.4.9
md5
137e26921b43a1e46517a3c4e4fba0c9
sha1
eff054cb66f913924c115f5733911475786996c1
sha256
73fbb90d64cb5671f2be7f92a05ea38e2e495cda8322dc651b2d11de60706137
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X501\MatchingRule;

use SpomkyLabs\Pki\X501\StringPrep\StringPreparer;

/**
 * Implements 'caseIgnoreMatch' matching rule.
 *
 * @see https://tools.ietf.org/html/rfc4517#section-4.2.11
 */
final class CaseIgnoreMatch extends StringPrepMatchingRule
{
    /**
     * @param int $stringType ASN.1 string type tag
     */
    private function __construct(int $stringType)
    {
        parent::__construct(
            StringPreparer::forStringType($stringType)->withCaseFolding(true)
        );
    }

    public static function create(int $stringType): self
    {
        return new self($stringType);
    }
}

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.