Open Journal Systems  3.3.0
Guzzle\Inflection\InflectorInterface Interface Reference
Inheritance diagram for Guzzle\Inflection\InflectorInterface:
Guzzle\Inflection\Inflector Guzzle\Inflection\MemoizingInflector Guzzle\Inflection\PreComputedInflector

Public Member Functions

 camel ($word)
 
 snake ($word)
 

Detailed Description

Inflector interface used to convert the casing of words

Definition at line 8 of file InflectorInterface.php.

Member Function Documentation

◆ camel()

Guzzle\Inflection\InflectorInterface::camel (   $word)

Converts strings from snake_case to upper CamelCase

Parameters
string$wordValue to convert into upper CamelCase
Returns
string

Implemented in Guzzle\Inflection\PreComputedInflector, Guzzle\Inflection\MemoizingInflector, and Guzzle\Inflection\Inflector.

◆ snake()

Guzzle\Inflection\InflectorInterface::snake (   $word)

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

Parameters
string$wordWord to convert to snake case
Returns
string

Implemented in Guzzle\Inflection\PreComputedInflector, Guzzle\Inflection\MemoizingInflector, and Guzzle\Inflection\Inflector.


The documentation for this interface was generated from the following file: