__construct() 공개 메소드

Construct a new function signature inspector.
public __construct ( InvocableInspector $invocableInspector )
$invocableInspector Eloquent\Phony\Invocation\InvocableInspector The invocable inspector to use.
 /**
  * Construct a new function signature inspector.
  *
  * @param InvocableInspector $invocableInspector The invocable inspector to use.
  * @param FeatureDetector    $featureDetector    The feature detector to use.
  */
 public function __construct(InvocableInspector $invocableInspector, FeatureDetector $featureDetector)
 {
     parent::__construct($invocableInspector);
     $this->isExportReferenceSupported = $featureDetector->isSupported('reflection.function.export.reference');
     $this->isVariadicParameterSupported = $featureDetector->isSupported('parameter.variadic');
     $this->isScalarTypeHintSupported = $featureDetector->isSupported('parameter.hint.scalar');
     $this->isCallableTypeHintSupported = $featureDetector->isSupported('type.callable');
     $this->isIterableTypeHintSupported = $featureDetector->isSupported('type.iterable');
 }
 /**
  * Construct a new function signature inspector.
  *
  * @param InvocableInspector $invocableInspector The invocable inspector to use.
  * @param FeatureDetector    $featureDetector    The feature detector to use.
  */
 public function __construct(InvocableInspector $invocableInspector, FeatureDetector $featureDetector)
 {
     parent::__construct($invocableInspector);
     $this->isVariadicParameterSupported = $featureDetector->isSupported('parameter.variadic');
     $this->isIterableTypeHintSupported = $featureDetector->isSupported('type.iterable');
 }