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\MathCode
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'];
}