PHP 클래스 Eloquent\Phony\Event\EventSequence

상속: implements EventCollection
파일 보기 프로젝트 열기: eloquent/phony

공개 메소드들

메소드 설명
__construct ( array $events, CallVerifierFactory $callVerifierFactory ) Construct a new event sequence.
allCalls ( ) : array Get all calls as an array.
allEvents ( ) : array Get all events as an array.
callAt ( integer $index ) : Eloquent\Phony\Call\Call Get a call by index.
callCount ( ) : integer Get the number of calls.
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.

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Construct a new event sequence.
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

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.

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.