PHP Класс Eloquent\Phony\Spy\TraversableSpy

Наследование: implements Eloquent\Phony\Spy\IterableSpy
Показать файл Открыть проект

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

Метод Описание
__construct ( Eloquent\Phony\Call\Call $call, Traversable $traversable, CallEventFactory $callEventFactory ) Construct a new traversable 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 traversable spy.
public __construct ( Eloquent\Phony\Call\Call $call, Traversable $traversable, CallEventFactory $callEventFactory )
$call Eloquent\Phony\Call\Call The call from which the array originated.
$traversable Traversable The traversable.
$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.