Open Journal Systems  3.3.0
Guzzle\Inflection\Inflector Class Reference
Inheritance diagram for Guzzle\Inflection\Inflector:
Guzzle\Inflection\InflectorInterface

Public Member Functions

 camel ($word)
 
 snake ($word)
 

Static Public Member Functions

static getDefault ()
 

Static Protected Attributes

static $default
 

Detailed Description

Default inflection implementation

Definition at line 8 of file Inflector.php.

Member Function Documentation

◆ camel()

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

Converts strings from snake_case to upper CamelCase

Parameters
string$wordValue to convert into upper CamelCase
Returns
string

Implements Guzzle\Inflection\InflectorInterface.

Definition at line 34 of file Inflector.php.

◆ getDefault()

◆ snake()

Guzzle\Inflection\Inflector::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

Implements Guzzle\Inflection\InflectorInterface.

Definition at line 29 of file Inflector.php.

Field Documentation

◆ $default

Guzzle\Inflection\Inflector::$default
staticprotected

Definition at line 11 of file Inflector.php.

Referenced by Guzzle\Inflection\Inflector\getDefault().


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