Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • 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
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • Inflector
  • MemoizingInflector
  • PreComputedInflector

Interfaces

  • InflectorInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class PreComputedInflector

Decorator used to add pre-computed inflection mappings to an inflector

Guzzle\Inflection\PreComputedInflector implements Guzzle\Inflection\InflectorInterface
Namespace: Guzzle\Inflection
Located at src/Guzzle/Inflection/PreComputedInflector.php
Methods summary
public
# __construct( Guzzle\Inflection\InflectorInterface $inflector, array $snake = array(), array $camel = array(), boolean $mirror = false )

Parameters

$inflector
Inflector being decorated
$snake
Hash of pre-computed camel to snake
$camel
Hash of pre-computed snake to camel
$mirror
Mirror snake and camel reflections
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
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
Value to convert into upper CamelCase

Returns

string

Implementation of

Guzzle\Inflection\InflectorInterface::camel()
Properties summary
protected array $mapping

Array of pre-computed inflections

Array of pre-computed inflections

# array( 'snake' => array(), 'camel' => array() )
protected Guzzle\Inflection\InflectorInterface $decoratedInflector

Decorated inflector

Decorated inflector

#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen