golden hour
/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src/Rules/English
⬆️ Go Up
Upload
File/Folder
Size
Actions
Inflectible.php
11.66 KB
Del
OK
InflectorFactory.php
461 B
Del
OK
Rules.php
874 B
Del
OK
Uninflected.php
6.39 KB
Del
OK
Edit: Rules.php
<?php declare(strict_types=1); namespace Doctrine\Inflector\Rules\English; 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()) ); } }
Save