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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( CallEventFactory $callEventFactory ) Construct a new iterable spy factory.
create ( Eloquent\Phony\Call\Call $call, Traversabl\Traversable | array $iterable ) : Traversable Create a new iterable spy.
instance ( ) : IterableSpyFactory Get the static instance of this factory.

Описание методов

__construct() публичный метод

Construct a new iterable spy factory.
public __construct ( CallEventFactory $callEventFactory )
$callEventFactory Eloquent\Phony\Call\Event\CallEventFactory The call event factory to use.

create() публичный метод

Create a new iterable spy.
public create ( Eloquent\Phony\Call\Call $call, Traversabl\Traversable | array $iterable ) : Traversable
$call Eloquent\Phony\Call\Call The call from which the iterable originated.
$iterable Traversabl\Traversable | array The iterable.
Результат Traversable The newly created iterable spy.

instance() публичный статический метод

Get the static instance of this factory.
public static instance ( ) : IterableSpyFactory
Результат IterableSpyFactory The static factory.