CoreFiles by mySites.guru
Rules.php31 lines, 877 bytes, from Joomla_6.1.2-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 6.1.2-rc1
md5
5cbd2a5fcef36433415553b4daf7b536
sha1
3ec3916685dfc3b217cfc301e37dc2f60465838b
sha256
95702c7b83f2bc022604b12721991b8a508f05eb068d8bb9f340cb293ffde66b
<?php

declare(strict_types=1);

namespace Doctrine\Inflector\Rules\Portuguese;

use Doctrine\Inflector\Rules\Patterns;
use Doctrine\Inflector\Rules\Ruleset;
use Doctrine\Inflector\Rules\Substitutions;
use Doctrine\Inflector\Rules\Transformations;

final class Rules
{
    public static function getSingularRuleset(): Ruleset
    {
        return new Ruleset(
            new Transformations(...Inflectible::getSingular()),
            new Patterns(...Uninflected::getSingular()),
            (new Substitutions(...Inflectible::getIrregular()))->getFlippedSubstitutions()
        );
    }

    public static function getPluralRuleset(): Ruleset
    {
        return new Ruleset(
            new Transformations(...Inflectible::getPlural()),
            new Patterns(...Uninflected::getPlural()),
            new Substitutions(...Inflectible::getIrregular())
        );
    }
}

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