X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src
opt
/
cpanel
/
ea-wappspector
/
vendor
/
doctrine
/
inflector
/
src
/
??
..
??
CachedWordInflector.php
(511 B)
??
GenericLanguageInflectorFactory.php
(1.64 KB)
??
Inflector.php
(12.55 KB)
??
InflectorFactory.php
(1.65 KB)
??
Language.php
(526 B)
??
LanguageInflectorFactory.php
(805 B)
??
NoopWordInflector.php
(201 B)
??
Rules
??
RulesetInflector.php
(1.32 KB)
??
WordInflector.php
(143 B)
Editing: CachedWordInflector.php
<?php declare(strict_types=1); namespace Doctrine\Inflector; class CachedWordInflector implements WordInflector { /** @var WordInflector */ private $wordInflector; /** @var string[] */ private $cache = []; public function __construct(WordInflector $wordInflector) { $this->wordInflector = $wordInflector; } public function inflect(string $word): string { return $this->cache[$word] ?? $this->cache[$word] = $this->wordInflector->inflect($word); } }
Upload File
Create Folder