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

Breadcrumb

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

function BigDecimal::__unserialize

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

@internal @psalm-suppress RedundantPropertyInitializationCheck

Parameters

array{value: string, scale: int} $data:

Throws

\LogicException

File

vendor/brick/math/src/BigDecimal.php, line 684

Class

BigDecimal
Immutable, arbitrary-precision signed decimal numbers.

Namespace

Brick\Math

Code

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

API Navigation

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