Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Inflector
  • MemoizingInflector
  • PreComputedInflector

Interfaces

  • InflectorInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class MemoizingInflector

Decorator used to add memoization to previously inflected words

Guzzle\Inflection\MemoizingInflector implements Guzzle\Inflection\InflectorInterface
Namespace: Guzzle\Inflection
Located at Guzzle/Inflection/MemoizingInflector.php
Methods summary
public
# __construct( Guzzle\Inflection\InflectorInterface $inflector, integer $maxCacheSize = 500 )

Parameters

$inflector
Guzzle\Inflection\InflectorInterface
$inflector Inflector being decorated
$maxCacheSize
integer
$maxCacheSize Maximum number of cached items to hold per cache
public string
# snake( string $word )

Converts strings from camel case to snake case (e.g. CamelCase camel_case).

Converts strings from camel case to snake case (e.g. CamelCase camel_case).

Parameters

$word
string
$word Word to convert to snake case

Returns

string

Implementation of

Guzzle\Inflection\InflectorInterface::snake()
public string
# camel( string $word )

Converts strings from snake_case to upper CamelCase

Converts strings from snake_case to upper CamelCase

Parameters

$word
string
$word Value to convert into upper CamelCase

Returns

string

Implementation of

Guzzle\Inflection\InflectorInterface::camel()
protected
# pruneCache( string $cache )

Prune one of the named caches by removing 20% of the cache if it is full

Prune one of the named caches by removing 20% of the cache if it is full

Parameters

$cache
string
$cache Type of cache to prune
Properties summary
protected array $cache array( 'snake' => array(), 'camel' => array() )
#

Array of cached inflections

Array of cached inflections

protected integer $maxCacheSize
#

Max entries per cache

Max entries per cache

protected Guzzle\Inflection\InflectorInterface $decoratedInflector
#

Decorated inflector

Decorated inflector

php-coveralls API documentation generated by ApiGen 2.8.0