PHP 클래스 Eloquent\Phony\Verification\AbstractCardinalityVerifierEventCollection

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

보호된 프로퍼티들

프로퍼티 타입 설명
$callCount
$callVerifierFactory
$calls
$cardinality
$eventCount
$events

공개 메소드들

메소드 설명
__construct ( array $events, CallVerifierFactory $callVerifierFactory ) Construct a new cardinality verifier event collection.
allCalls ( ) : array Get all calls as an array.
allEvents ( ) : array Get all events as an array.
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.
callAt ( integer $index ) : Eloquent\Phony\Call\Call Get a call by index.
callCount ( ) : integer Get the number of calls.
cardinality ( ) : Cardinality Get the cardinality.
count ( ) : integer Get the event count.
eventAt ( integer $index ) : Eloquent\Phony\Event\Event Get an event by index.
eventCount ( ) : integer Get the number of events.
firstCall ( ) : Eloquent\Phony\Call\Call Get the first call.
firstEvent ( ) : Eloquent\Phony\Event\Event Get the first event.
getIterator ( ) : Iterator Get an iterator for this collection.
hasCalls ( ) : boolean Returns true if this collection contains any calls.
hasEvents ( ) : boolean Returns true if this collection contains any events.
lastCall ( ) : Eloquent\Phony\Call\Call Get the last call.
lastEvent ( ) : Eloquent\Phony\Event\Event Get the last event.
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.

비공개 메소드들

메소드 설명
normalizeIndex ( $size, $index, &$normalized = null )

메소드 상세

__construct() 공개 메소드

Construct a new cardinality verifier event collection.
public __construct ( array $events, CallVerifierFactory $callVerifierFactory )
$events array
$callVerifierFactory Eloquent\Phony\Call\CallVerifierFactory The call verifier factory to use.

allCalls() 공개 메소드

Get all calls as an array.
public allCalls ( ) : array
리턴 array

allEvents() 공개 메소드

Get all events as an array.
public allEvents ( ) : array
리턴 array

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.

callAt() 공개 메소드

Negative indices are offset from the end of the list. That is, -1 indicates the last element, and -2 indicates the second last element.
public callAt ( integer $index ) : Eloquent\Phony\Call\Call
$index integer The index.
리턴 Eloquent\Phony\Call\Call The call.

callCount() 공개 메소드

Get the number of calls.
public callCount ( ) : integer
리턴 integer The call count.

cardinality() 공개 메소드

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

count() 공개 메소드

Get the event count.
public count ( ) : integer
리턴 integer The event count.

eventAt() 공개 메소드

Negative indices are offset from the end of the list. That is, -1 indicates the last element, and -2 indicates the second last element.
public eventAt ( integer $index ) : Eloquent\Phony\Event\Event
$index integer The index.
리턴 Eloquent\Phony\Event\Event The event.

eventCount() 공개 메소드

Get the number of events.
public eventCount ( ) : integer
리턴 integer The event count.

firstCall() 공개 메소드

Get the first call.
public firstCall ( ) : Eloquent\Phony\Call\Call
리턴 Eloquent\Phony\Call\Call The call.

firstEvent() 공개 메소드

Get the first event.
public firstEvent ( ) : Eloquent\Phony\Event\Event
리턴 Eloquent\Phony\Event\Event The event.

getIterator() 공개 메소드

Get an iterator for this collection.
public getIterator ( ) : Iterator
리턴 Iterator The iterator.

hasCalls() 공개 메소드

Returns true if this collection contains any calls.
public hasCalls ( ) : boolean
리턴 boolean True if this collection contains any calls.

hasEvents() 공개 메소드

Returns true if this collection contains any events.
public hasEvents ( ) : boolean
리턴 boolean True if this collection contains any events.

lastCall() 공개 메소드

Get the last call.
public lastCall ( ) : Eloquent\Phony\Call\Call
리턴 Eloquent\Phony\Call\Call The call.

lastEvent() 공개 메소드

Get the last event.
public lastEvent ( ) : Eloquent\Phony\Event\Event
리턴 Eloquent\Phony\Event\Event The event.

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

프로퍼티 상세

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

protected $callCount

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

protected $callVerifierFactory

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

protected $calls

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

protected $cardinality

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

protected $eventCount

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

protected $events