instance() public static method

Get the static instance of this inspector.
public static instance ( ) : InvocableInspector
return InvocableInspector The static inspector.
Exemplo n.º 1
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;
 }
 /**
  * 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;
 }
Exemplo n.º 3
0
 /**
  * Get the static instance of this factory.
  *
  * @return StubFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(Sequencer::sequence('stub-label'), MatcherFactory::instance(), MatcherVerifier::instance(), Invoker::instance(), InvocableInspector::instance(), EmptyValueFactory::instance(), GeneratorAnswerBuilderFactory::instance());
     }
     return self::$instance;
 }
Exemplo n.º 4
0
 /**
  * Get the static instance of this exporter.
  *
  * @return Exporter The static exporter.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(1, Sequencer::sequence('exporter-object-id'), InvocableInspector::instance());
     }
     return self::$instance;
 }
Exemplo n.º 5
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;
 }