Eloquent\Phony\Spy\TraversableSpy::__construct PHP Method

__construct() public method

Construct a new traversable spy.
public __construct ( Eloquent\Phony\Call\Call $call, Traversable $traversable, CallEventFactory $callEventFactory )
$call Eloquent\Phony\Call\Call The call from which the array originated.
$traversable Traversable The traversable.
$callEventFactory Eloquent\Phony\Call\Event\CallEventFactory The call event factory to use.
    public function __construct(Call $call, Traversable $traversable, CallEventFactory $callEventFactory)
    {
        $this->call = $call;
        $this->traversable = $traversable;
        $this->callEventFactory = $callEventFactory;
        $this->isUsed = false;
        $this->isConsumed = false;
    }