You are here

public static function Factory::getInstance in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/comparator/src/Factory.php \SebastianBergmann\Comparator\Factory::getInstance()
  2. 8 vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php \Prophecy\Comparator\Factory::getInstance()
Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php \Prophecy\Comparator\Factory::getInstance()

Return value

Factory

Overrides Factory::getInstance

3 calls to Factory::getInstance()
ExactValueToken::__construct in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php
Initializes token.
ObjectProphecy::__construct in vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
Initializes object prophecy.
ObjectStateToken::__construct in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php
Initializes token.

File

vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php, line 38

Class

Factory
Prophecy comparator factory.

Namespace

Prophecy\Comparator

Code

public static function getInstance() {
  if (self::$instance === null) {
    self::$instance = new Factory();
  }
  return self::$instance;
}