PHP Class Illuminate\Support\Pluralizer

Afficher le fichier Open project: illuminate/support Class Usage Examples

Méthodes publiques

Свойство Type Description
$uncountable array Uncountable word forms.

Méthodes publiques

Méthode Description
plural ( string $value, integer $count = 2 ) : string Get the plural form of an English word.
singular ( string $value ) : string Get the singular form of an English word.

Méthodes protégées

Méthode Description
matchCase ( string $value, string $comparison ) : string Attempt to match the case on two strings.
uncountable ( string $value ) : boolean Determine if the given value is uncountable.

Method Details

matchCase() protected static méthode

Attempt to match the case on two strings.
protected static matchCase ( string $value, string $comparison ) : string
$value string
$comparison string
Résultat string

plural() public static méthode

Get the plural form of an English word.
public static plural ( string $value, integer $count = 2 ) : string
$value string
$count integer
Résultat string

singular() public static méthode

Get the singular form of an English word.
public static singular ( string $value ) : string
$value string
Résultat string

uncountable() protected static méthode

Determine if the given value is uncountable.
protected static uncountable ( string $value ) : boolean
$value string
Résultat boolean

Property Details

$uncountable public_oe static_oe property

Uncountable word forms.
public static array $uncountable
Résultat array