Class Inflections
A representation of the inflections used by an inflector.
Methods summary
public static
|
|
public
|
|
public
|
#
acronym( mixed $word )
Specifies a new acronym. An acronym must be specified as it will appear in a
camelized string. An underscore string that contains the acronym will retain the
acronym when passed to |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
human( string $rule, string $replacement )
Specifies a humanized form of a string by a regular expression rule or by a string mapping. When using a regular expression based replacement, the normal humanize formatting is called after the replacement. When a string is used, the human form should be specified as desired (example: 'The name', not 'the_name'). |
Magic methods summary
Properties summary
protected
array[string]string
|
$plurals |
#
Rules for |
protected
array[string]string
|
$singulars |
#
Rules for |
protected
array[]string
|
$uncountables |
#
Uncountables. |
protected
array[string]string
|
$humans |
#
Rules for |
protected
array[string]string
|
$acronyms |
#
Acronyms. |
protected
string
|
$acronym_regex |
#
Acronyms regex. |
Magic properties
public read-only
array
|
$plurals |
|
#
Rules for |
public read-only
array
|
$singulars |
|
#
Rules for |
public read-only
array
|
$uncountables |
|
#
Uncountables. |
public read-only
array
|
$humans |
|
#
Rules for |
public read-only
array
|
$acronyms |
|
#
Acronyms. |
public read-only
array
|
$acronym_regex |
|
#
Acronyms regex. |