/** * This method is required by interface Serializable and MUST NOT be accessed directly. * * @internal * * @param string $value */ public function unserialize($value) { if ($this->intVal !== null || $this->scale !== null) { throw new \LogicException('unserialize() is an internal function, it must not be called directly.'); } list($value, $scale) = explode(':', $value); $this->intVal = BigInteger::of($value); $this->scale = (int) $scale; }