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;
    }
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;
    }
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 ; }
Sets how big overflow is.

@param number $magnitude Positive number.

@throws \InvalidArgumentException Non-numeric magnitude specified.
@throws \LogicException Negative magnitude specified.
Sets how big overflow is .