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

Breadcrumb

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

function Calculator::set

Sets the Calculator instance to use.

An instance is typically set only in unit tests: the autodetect is usually the best option.

Parameters

Calculator|null $calculator The calculator instance, or NULL to revert to autodetect.:

File

vendor/brick/math/src/Internal/Calculator.php, line 47

Class

Calculator
Performs basic operations on arbitrary size integers.

Namespace

Brick\Math\Internal

Code

public static final function set(?Calculator $calculator) : void {
    self::$instance = $calculator;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal