instance() 공개 정적인 메소드

Get the static instance of this detector.
public static instance ( ) : FeatureDetector
리턴 FeatureDetector The static detector.
예제 #1
0
 /**
  * Get the static instance of this generator.
  *
  * @return MockGenerator The static generator.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(Sequencer::sequence('mock-class-label'), FunctionSignatureInspector::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #2
0
 /**
  * Get the static instance of this factory.
  *
  * @return MockFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(Sequencer::sequence('mock-label'), MockGenerator::instance(), HandleFactory::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #3
0
 /**
  * Get the static instance of this factory.
  *
  * @return MockBuilderFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(MockFactory::instance(), HandleFactory::instance(), InvocableInspector::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #4
0
 /**
  * Get the static instance of this engine.
  *
  * @return DifferenceEngine The static engine.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(FeatureDetector::instance());
     }
     return self::$instance;
 }
 /**
  * Get the static instance of this factory.
  *
  * @return GeneratorAnswerBuilderFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(InvocableInspector::instance(), Invoker::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #6
0
 /**
  * Get the static instance of this factory.
  *
  * @return GeneratorSpyFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(CallEventFactory::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #7
0
 /**
  * Get the static instance of this renderer.
  *
  * @return AssertionRenderer The static renderer.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(MatcherVerifier::instance(), InlineExporter::instance(), DifferenceEngine::instance(), FeatureDetector::instance());
     }
     return self::$instance;
 }
예제 #8
0
 /**
  * Get the static instance of this inspector.
  *
  * @return FunctionSignatureInspector The static inspector.
  */
 public static function instance()
 {
     if (!self::$instance) {
         $featureDetector = FeatureDetector::instance();
         if ($featureDetector->isSupported('runtime.hhvm')) {
             // @codeCoverageIgnoreStart
             self::$instance = new HhvmFunctionSignatureInspector(InvocableInspector::instance(), $featureDetector);
             // @codeCoverageIgnoreEnd
         } else {
             self::$instance = new PhpFunctionSignatureInspector(InvocableInspector::instance(), $featureDetector);
         }
     }
     return self::$instance;
 }