PHP 클래스 Eloquent\Phony\Spy\IterableSpyFactory

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

공개 메소드들

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