|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (InflectorInterface $inflector, array $snake=array(), array $camel=array(), $mirror=false) | |
| camel ($word) | |
| snake ($word) | |
Protected Attributes | |
| $decoratedInflector | |
| $mapping | |
Decorator used to add pre-computed inflection mappings to an inflector
Definition at line 8 of file PreComputedInflector.php.
| Guzzle\Inflection\PreComputedInflector::__construct | ( | InflectorInterface | $inflector, |
| array | $snake = array(), |
||
| array | $camel = array(), |
||
$mirror = false |
|||
| ) |
| InflectorInterface | $inflector | Inflector being decorated |
| array | $snake | Hash of pre-computed camel to snake |
| array | $camel | Hash of pre-computed snake to camel |
| bool | $mirror | Mirror snake and camel reflections |
Definition at line 31 of file PreComputedInflector.php.
| Guzzle\Inflection\PreComputedInflector::camel | ( | $word | ) |
Converts strings from snake_case to upper CamelCase
| string | $word | Value to convert into upper CamelCase |
Implements Guzzle\Inflection\InflectorInterface.
Definition at line 59 of file PreComputedInflector.php.
| Guzzle\Inflection\PreComputedInflector::snake | ( | $word | ) |
Converts strings from camel case to snake case (e.g. CamelCase camel_case).
| string | $word | Word to convert to snake case |
Implements Guzzle\Inflection\InflectorInterface.
Definition at line 45 of file PreComputedInflector.php.
|
protected |
Decorated inflector
Definition at line 23 of file PreComputedInflector.php.
|
protected |
Array of pre-computed inflections
Definition at line 14 of file PreComputedInflector.php.