Factory.php
Same filename in this branch
- 11.1.x vendor/phpunit/phpunit/src/Runner/Filter/Factory.php
- 11.1.x vendor/phpunit/php-file-iterator/src/Factory.php
- 11.1.x vendor/sebastian/comparator/src/Factory.php
- 11.1.x vendor/composer/composer/src/Composer/Factory.php
- 11.1.x vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php
- 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Factory.php
Namespace
Prophecy\ComparatorFile
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Comparator/ Factory.php
View source
<?php
/*
* This file is part of the Prophecy.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
* Marcello Duarte <marcello.duarte@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Prophecy\Comparator;
use SebastianBergmann\Comparator\Factory as BaseFactory;
/**
* Prophecy comparator factory.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*
* @deprecated Use "Prophecy\Comparator\FactoryProvider" instead to get a "SebastianBergmann\Comparator\Factory" instance.
*/
final class Factory extends BaseFactory {
/**
* @var Factory
*/
private static $instance;
public function __construct() {
parent::__construct();
$this->register(new ClosureComparator());
$this->register(new ProphecyComparator());
}
/**
* @return Factory
*/
public static function getInstance() {
if (self::$instance === null) {
self::$instance = new Factory();
}
return self::$instance;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Factory | Use "Prophecy\Comparator\FactoryProvider" instead to get a "SebastianBergmann\Comparator\Factory" instance. |
Prophecy comparator factory. |