PHP 클래스 Illuminate\Support\Pluralizer

파일 보기 프로젝트 열기: illuminate/support 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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