CachedWordInflector
in package
implements
WordInflector
Interfaces, Classes, Traits and Enums
Table of Contents
- $cache : array<string|int, string>
- $wordInflector : WordInflector
- __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
Return values
mixed —inflect()
public
inflect(string $word) : string
Parameters
- $word : string