class
Illuminate
/
Support
/
Pluralizer
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Pluralizer
Properties
public
static
$uncountable string[]
Uncountable word forms.
Default: array
Methods
public
static
plural ( $value , $count ) : string
Get the plural form of an English word.
Parameters
- $value string
- $count int|array|Countable
public
static
singular ( $value ) : string
Get the singular form of an English word.
Parameters
- $value string
protected
static
uncountable ( $value ) : bool
Determine if the given value is uncountable.
Parameters
- $value string
protected
static
matchCase ( $value , $comparison ) : string
Attempt to match the case on two strings.
Parameters
- $value string
- $comparison string
public
static
inflector ( ) : Doctrine\...\Inflector
Get the inflector instance.