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

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

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

Метод Описание
__construct ( CallEventFactory $callEventFactory, FeatureDetector $featureDetector ) Construct a new generator spy factory.
create ( Eloquent\Phony\Call\Call $call, Generator $generator ) : Generator Create a new generator spy.
instance ( ) : GeneratorSpyFactory Get the static instance of this factory.

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

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

Construct a new generator spy factory.
public __construct ( CallEventFactory $callEventFactory, FeatureDetector $featureDetector )
$callEventFactory Eloquent\Phony\Call\Event\CallEventFactory The call event factory to use.
$featureDetector Eloquent\Phony\Reflection\FeatureDetector The feature detector to use.

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

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

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

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