PHP 클래스 Eloquent\Phony\Spy\SpyFactory

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

공개 메소드들

메소드 설명
__construct ( Sequencer $labelSequencer, CallFactory $callFactory, Invoker $invoker, GeneratorSpyFactory $generatorSpyFactory, IterableSpyFactory $iterableSpyFactory ) Construct a new spy factory.
create ( callable | null $callback = null ) : Eloquent\Phony\Spy\Spy Create a new spy.
instance ( ) : SpyFactory Get the static instance of this factory.

메소드 상세

__construct() 공개 메소드

Construct a new spy factory.
public __construct ( Sequencer $labelSequencer, CallFactory $callFactory, Invoker $invoker, GeneratorSpyFactory $generatorSpyFactory, IterableSpyFactory $iterableSpyFactory )
$labelSequencer Eloquent\Phony\Sequencer\Sequencer The label sequencer to use.
$callFactory Eloquent\Phony\Call\CallFactory The call factory to use.
$invoker Eloquent\Phony\Invocation\Invoker The invoker to use.
$generatorSpyFactory GeneratorSpyFactory The generator spy factory to use.
$iterableSpyFactory IterableSpyFactory The iterable spy factory to use.

create() 공개 메소드

Create a new spy.
public create ( callable | null $callback = null ) : Eloquent\Phony\Spy\Spy
$callback callable | null The callback, or null to create an anonymous spy.
리턴 Eloquent\Phony\Spy\Spy The newly created spy.

instance() 공개 정적인 메소드

Get the static instance of this factory.
public static instance ( ) : SpyFactory
리턴 SpyFactory The static factory.