CachedWordInflector
in package
implements
WordInflector
Table of Contents
Interfaces
Properties
- $cache : array<string|int, string>
- $wordInflector : WordInflector
Methods
- __construct() : mixed
- inflect() : string
Properties
$cache
private
array<string|int, string>
$cache
= []
$wordInflector
private
WordInflector
$wordInflector
Methods
__construct()
public
__construct(WordInflector $wordInflector) : mixed
Parameters
- $wordInflector : WordInflector
inflect()
public
inflect(string $word) : string
Parameters
- $word : string