예제 #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;
 }
예제 #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;
 }