Inflector
in package
implements
InflectorInterface
Default inflection implementation
Table of Contents
Interfaces
- InflectorInterface
- Inflector interface used to convert the casing of words
Properties
Methods
- camel() : string
- Converts strings from snake_case to upper CamelCase
- getDefault() : MemoizingInflector
- Get the default inflector object that has support for caching
- snake() : string
- Converts strings from camel case to snake case (e.g. CamelCase camel_case).
Properties
$default
protected
static InflectorInterface
$default
Methods
camel()
Converts strings from snake_case to upper CamelCase
public
camel(mixed $word) : string
Parameters
- $word : mixed
-
Value to convert into upper CamelCase
Return values
stringgetDefault()
Get the default inflector object that has support for caching
public
static getDefault() : MemoizingInflector
Return values
MemoizingInflectorsnake()
Converts strings from camel case to snake case (e.g. CamelCase camel_case).
public
snake(mixed $word) : string
Parameters
- $word : mixed
-
Word to convert to snake case