instance() public static method

Get the static instance of this invoker.
public static instance ( ) : Invoker
return Invoker The static invoker.
コード例 #1
0
ファイル: CallFactory.php プロジェクト: eloquent/phony
 /**
  * Get the static instance of this factory.
  *
  * @return CallFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(CallEventFactory::instance(), Invoker::instance());
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: HandleFactory.php プロジェクト: eloquent/phony
 /**
  * Get the static instance of this factory.
  *
  * @return HandleFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(StubFactory::instance(), StubVerifierFactory::instance(), AssertionRenderer::instance(), ExceptionAssertionRecorder::instance(), Invoker::instance());
     }
     return self::$instance;
 }
コード例 #3
0
ファイル: SpyFactory.php プロジェクト: eloquent/phony
 /**
  * Get the static instance of this factory.
  *
  * @return SpyFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(Sequencer::sequence('spy-label'), CallFactory::instance(), Invoker::instance(), GeneratorSpyFactory::instance(), IterableSpyFactory::instance());
     }
     return self::$instance;
 }
コード例 #4
0
 /**
  * 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;
 }
コード例 #5
0
ファイル: StubFactory.php プロジェクト: eloquent/phony
 /**
  * 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;
 }