PHP Interface Eloquent\Phony\Verification\CardinalityVerifier

Datei anzeigen Open project: eloquent/phony

Public Methods

Method Description
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.

Method Details

always() public method

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

atLeast() public method

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() public method

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() public method

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() public method

Get the cardinality.
public cardinality ( ) : Cardinality
return Cardinality The cardinality.

never() public method

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

once() public method

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

resetCardinality() public method

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

thrice() public method

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

times() public method

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

twice() public method

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