Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FactoryProvider.php

function FactoryProvider::getInstance

3 calls to FactoryProvider::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
ObjectStateToken::__construct in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php
Initializes token.

File

vendor/phpspec/prophecy/src/Prophecy/Comparator/FactoryProvider.php, line 30

Class

FactoryProvider
Prophecy comparator factory.

Namespace

Prophecy\Comparator

Code

public static function getInstance() : Factory {
    if (self::$instance === null) {
        self::$instance = new Factory();
        self::$instance->register(new ClosureComparator());
        self::$instance->register(new ProphecyComparator());
    }
    return self::$instance;
}
RSS feed
Powered by Drupal