File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/doctrine/inflector/src/Rules
Upload
[..]
English/
Rename
Del
Esperanto/
Rename
Del
French/
Rename
Del
Italian/
Rename
Del
NorwegianBokmal/
Rename
Del
Portuguese/
Rename
Del
Ruleset.php (777 B)
Edit
Rename
Del
Spanish/
Rename
Del
Substitution.php (451 B)
Edit
Rename
Del
Substitutions.php (1.34 KB)
Edit
Rename
Del
Transformation.php (790 B)
Edit
Rename
Del
Transformations.php (648 B)
Edit
Rename
Del
Turkish/
Rename
Del
Word.php (294 B)
Edit
Rename
Del
Edit: 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; } }
Simpan