28 $this->decoratedInflector = $inflector;
32 public function snake($word)
34 if (!isset($this->cache[
'snake'][$word])) {
36 $this->cache[
'snake'][$word] = $this->decoratedInflector->snake($word);
39 return $this->cache[
'snake'][$word];
49 public function camel($word)
51 if (!isset($this->cache[
'camel'][$word])) {
53 $this->cache[
'camel'][$word] = $this->decoratedInflector->camel($word);
56 return $this->cache[
'camel'][$word];
66 if (count($this->cache[
$cache]) == $this->maxCacheSize) {
67 $this->cache[
$cache] = array_slice($this->cache[
$cache], $this->maxCacheSize * 0.2);