PHP Класс Eloquent\Phony\Spy\Detail\GeneratorSpyFactoryDetailHhvm

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

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

Метод Описание
createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, CallEventFactory $callEventFactory, boolean $isGeneratorImplicitNextSupported ) : Generator Create a new generator spy.

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

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

Create a new generator spy.
public static createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, CallEventFactory $callEventFactory, boolean $isGeneratorImplicitNextSupported ) : Generator
$call Eloquent\Phony\Call\Call The call from which the generator originated.
$generator Generator The generator.
$callEventFactory Eloquent\Phony\Call\Event\CallEventFactory The call event factory to use.
$isGeneratorImplicitNextSupported boolean True if implicit generator next() behavior is supported.
Результат Generator The newly created generator spy.