PHP 클래스 Eloquent\Phony\Verification\AbstractCardinalityVerifier

상속: implements Eloquent\Phony\Verification\CardinalityVerifier
파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cardinality

공개 메소드들

메소드 설명
__construct ( ) Construct a new cardinality verifier.
always ( ) Requires that the next verification matches for all possible items.
atLeast ( integer $minimum ) Requires that the next verification matches a number of times greater than or equal to $minimum.
atMost ( integer $maximum ) Requires that the next verification matches a number of times less than or equal to $maximum.
between ( integer $minimum, integer | null $maximum ) Requires that the next verification matches a number of times greater than or equal to $minimum, and less than or equal to $maximum.
cardinality ( ) : Cardinality Get the cardinality.
never ( ) Requires that the next verification never matches.
once ( ) Requires that the next verification matches only once.
resetCardinality ( ) : Cardinality Reset the cardinality to its default value.
thrice ( ) Requires that the next verification matches exactly three times.
times ( integer $times ) Requires that the next verification matches an exact number of times.
twice ( ) Requires that the next verification matches exactly two times.

메소드 상세

__construct() 공개 메소드

Construct a new cardinality verifier.
public __construct ( )

always() 공개 메소드

Requires that the next verification matches for all possible items.
public always ( )

atLeast() 공개 메소드

Requires that the next verification matches a number of times greater than or equal to $minimum.
public atLeast ( integer $minimum )
$minimum integer The minimum match count.

atMost() 공개 메소드

Requires that the next verification matches a number of times less than or equal to $maximum.
public atMost ( integer $maximum )
$maximum integer The maximum match count.

between() 공개 메소드

Requires that the next verification matches a number of times greater than or equal to $minimum, and less than or equal to $maximum.
public between ( integer $minimum, integer | null $maximum )
$minimum integer The minimum match count.
$maximum integer | null The maximum match count, or null for no maximum.

cardinality() 공개 메소드

Get the cardinality.
public cardinality ( ) : Cardinality
리턴 Cardinality The cardinality.

never() 공개 메소드

Requires that the next verification never matches.
public never ( )

once() 공개 메소드

Requires that the next verification matches only once.
public once ( )

resetCardinality() 공개 메소드

Reset the cardinality to its default value.
public resetCardinality ( ) : Cardinality
리턴 Cardinality The current cardinality.

thrice() 공개 메소드

Requires that the next verification matches exactly three times.
public thrice ( )

times() 공개 메소드

Requires that the next verification matches an exact number of times.
public times ( integer $times )
$times integer The match count.

twice() 공개 메소드

Requires that the next verification matches exactly two times.
public twice ( )

프로퍼티 상세

$cardinality 보호되어 있는 프로퍼티

protected $cardinality