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

Breadcrumb

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

function BigRational::__unserialize

This method is only here to allow unserializing the object and cannot be accessed directly.

@internal @psalm-suppress RedundantPropertyInitializationCheck

Parameters

array{numerator: BigInteger, denominator: BigInteger} $data:

Throws

\LogicException

File

vendor/brick/math/src/BigRational.php, line 404

Class

BigRational
An arbitrarily large rational number.

Namespace

Brick\Math

Code

public function __unserialize(array $data) : void {
    if (isset($this->numerator)) {
        throw new \LogicException('__unserialize() is an internal function, it must not be called directly.');
    }
    $this->numerator = $data['numerator'];
    $this->denominator = $data['denominator'];
}

API Navigation

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