Cardinality
Rasuvaeff\Understudy\Cardinality
Class — Package: rasuvaeff/understudy — Source — Version: v0.4.1
How many times a call is allowed to happen. null as the maximum means no upper bound.
Constructor
php
__construct(
int<0, max> $minimum,
int<0, max>|null $maximum,
)| Parameter | Type | Default | Description |
|---|---|---|---|
$minimum | int<0, max> | required | |
$maximum | int<0, max>|null | required |
Methods
exactly()
php
static exactly(int $times): selfatLeast()
php
static atLeast(int $minimum): selfbetween()
php
static between(int $minimum, ?int $maximum): selfany()
php
static any(): selfAny number of calls, including none.
never()
php
static never(): selfallows()
php
allows(int<0, max> $count): booldescribe()
php
describe(): string