Eloquent\Phony\Stub\Answer\Builder\GeneratorAnswerBuilderFactory::__construct PHP Method

__construct() public method

Construct a new generator answer builder factory.
public __construct ( InvocableInspector $invocableInspector, Invoker $invoker, FeatureDetector $featureDetector )
$invocableInspector Eloquent\Phony\Invocation\InvocableInspector The invocable inspector to use.
$invoker Eloquent\Phony\Invocation\Invoker The invoker to use.
$featureDetector Eloquent\Phony\Reflection\FeatureDetector The feature detector to use.
    public function __construct(InvocableInspector $invocableInspector, Invoker $invoker, FeatureDetector $featureDetector)
    {
        $this->invocableInspector = $invocableInspector;
        $this->invoker = $invoker;
        $this->isGeneratorReturnSupported = $featureDetector->isSupported('generator.return');
    }
GeneratorAnswerBuilderFactory