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

__construct() public method

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.
    public function __construct(CallEventFactory $callEventFactory, FeatureDetector $featureDetector)
    {
        $this->callEventFactory = $callEventFactory;
        $this->isGeneratorImplicitNextSupported = $featureDetector->isSupported('generator.implicit-next');
        $this->isGeneratorReturnSupported = $featureDetector->isSupported('generator.return');
        $this->isHhvm = $featureDetector->isSupported('runtime.hhvm');
    }