File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/doctrine/inflector/src/Rules/Portuguese
Upload
[..]
Inflectible.php (5.52 KB)
Edit
Rename
Del
Rules.php (877 B)
Edit
Rename
Del
Uninflected.php (688 B)
Edit
Rename
Del
Edit: Rules.php
<?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()) ); } }
Simpan