public function setOverflowMagnitude($magnitude)
    {
        if ($magnitude < 0) {
            throw new \LogicException('Overflow magnitude cannot be negative.');
        }

        if (!is_numeric($magnitude)) {
            throw new \InvalidArgumentException('Overflow magnitude should be a number.');
        }

        $this->overflowMagnitude = $magnitude;
    }