X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src/Rules
opt
/
cpanel
/
ea-wappspector
/
vendor
/
doctrine
/
inflector
/
src
/
Rules
/
??
..
??
English
??
Esperanto
??
French
??
Italian
??
NorwegianBokmal
??
Pattern.php
(788 B)
??
Patterns.php
(602 B)
??
Portuguese
??
Ruleset.php
(777 B)
??
Spanish
??
Substitution.php
(451 B)
??
Substitutions.php
(1.34 KB)
??
Transformation.php
(790 B)
??
Transformations.php
(648 B)
??
Turkish
??
Word.php
(294 B)
Editing: Transformations.php
<?php declare(strict_types=1); namespace Doctrine\Inflector\Rules; use Doctrine\Inflector\WordInflector; class Transformations implements WordInflector { /** @var Transformation[] */ private $transformations; public function __construct(Transformation ...$transformations) { $this->transformations = $transformations; } public function inflect(string $word): string { foreach ($this->transformations as $transformation) { if ($transformation->getPattern()->matches($word)) { return $transformation->inflect($word); } } return $word; } }
Upload File
Create Folder