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

Breadcrumb

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

function BigInteger::ten

Returns a BigInteger representing ten.

@psalm-pure

1 call to BigInteger::ten()
BigRational::ten in vendor/brick/math/src/BigRational.php
Returns a BigRational representing ten.

File

vendor/brick/math/src/BigInteger.php, line 327

Class

BigInteger
An arbitrary-size integer.

Namespace

Brick\Math

Code

public static function ten() : BigInteger {
    
    /**
     * @psalm-suppress ImpureStaticVariable
     * @var BigInteger|null $ten
     */
    static $ten;
    if ($ten === null) {
        $ten = new BigInteger('10');
    }
    return $ten;
}

API Navigation

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