PHP Интерфейс Eloquent\Phony\Verification\CardinalityVerifier

Показать файл Открыть проект

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

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

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

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