PHP 클래스 Eloquent\Phony\Spy\ArraySpy

상속: implements Eloquent\Phony\Spy\IterableSpy
파일 보기 프로젝트 열기: eloquent/phony

공개 메소드들

메소드 설명
__construct ( Eloquent\Phony\Call\Call $call, array $array, CallEventFactory $callEventFactory ) Construct a new array spy.
count ( ) : integer Get the count.
current ( ) : mixed Get the current value.
iterable ( ) : mixed Get the original iterable value.
key ( ) : mixed Get the current key.
next ( ) Move the current position to the next element.
offsetExists ( mixed $key ) : boolean Check if a key exists.
offsetGet ( mixed $key ) : mixed Get a value.
offsetSet ( mixed $key, mixed $value ) Set a value.
offsetUnset ( mixed $key ) Un-set a value.
rewind ( ) Rewind the iterator.
valid ( ) : boolean Returns true if the current iterator position is valid.

메소드 상세

__construct() 공개 메소드

Construct a new array spy.
public __construct ( Eloquent\Phony\Call\Call $call, array $array, CallEventFactory $callEventFactory )
$call Eloquent\Phony\Call\Call The call from which the array originated.
$array array The array.
$callEventFactory Eloquent\Phony\Call\Event\CallEventFactory The call event factory to use.

count() 공개 메소드

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

current() 공개 메소드

Get the current value.
public current ( ) : mixed
리턴 mixed The current value.

iterable() 공개 메소드

Get the original iterable value.
public iterable ( ) : mixed
리턴 mixed The original value.

key() 공개 메소드

Get the current key.
public key ( ) : mixed
리턴 mixed The current key.

next() 공개 메소드

Move the current position to the next element.
public next ( )

offsetExists() 공개 메소드

Check if a key exists.
public offsetExists ( mixed $key ) : boolean
$key mixed The key.
리턴 boolean True if the key exists.

offsetGet() 공개 메소드

Get a value.
public offsetGet ( mixed $key ) : mixed
$key mixed The key.
리턴 mixed The value.

offsetSet() 공개 메소드

Set a value.
public offsetSet ( mixed $key, mixed $value )
$key mixed The key.
$value mixed The value.

offsetUnset() 공개 메소드

Un-set a value.
public offsetUnset ( mixed $key )
$key mixed The key.

rewind() 공개 메소드

Rewind the iterator.
public rewind ( )

valid() 공개 메소드

Returns true if the current iterator position is valid.
public valid ( ) : boolean
리턴 boolean True if the current iterator position is valid.