PHP 클래스 Eloquent\Phony\Spy\GeneratorSpyFactory

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__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.