PHP Класс Illuminate\Support\Pluralizer

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$uncountable array Uncountable word forms.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

matchCase() защищенный статический Метод

Attempt to match the case on two strings.
protected static matchCase ( string $value, string $comparison ) : string
$value string
$comparison string
Результат string

plural() публичный статический Метод

Get the plural form of an English word.
public static plural ( string $value, integer $count = 2 ) : string
$value string
$count integer
Результат string

singular() публичный статический Метод

Get the singular form of an English word.
public static singular ( string $value ) : string
$value string
Результат string

uncountable() защищенный статический Метод

Determine if the given value is uncountable.
protected static uncountable ( string $value ) : boolean
$value string
Результат boolean

Описание свойств

$uncountable публичное статическое свойство

Uncountable word forms.
public static array $uncountable
Результат array