You are here

public static function Factory::getInstance in Zircon Profile 8.0

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

Return value

Factory

1 call to Factory::getInstance()
PHPUnit_Framework_Constraint_IsEqual::evaluate in vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php
Evaluates the constraint for parameter $other
1 method overrides Factory::getInstance()
Factory::getInstance in vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php

File

vendor/sebastian/comparator/src/Factory.php, line 50

Class

Factory
Factory for comparators which compare values for equality.

Namespace

SebastianBergmann\Comparator

Code

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