public function setRoundingMode($roundingMode)
    {
        if (in_array($roundingMode, RoundingMode::asArray())) {
            $this->roundingMode = $roundingMode;
        } else {
            $msg = "The roundingMode argument must be a value from the RoundingMode enumeration, '" . $roundingMode . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setRoundingMode($roundingMode)
    {
        if (in_array($roundingMode, RoundingMode::asArray())) {
            $this->roundingMode = $roundingMode;
        } else {
            $msg = "The roundingMode argument must be a value from the RoundingMode enumeration, '" . $roundingMode . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setRoundingMode ( $ roundingMode ) { if ( in_array ( $ roundingMode , RoundingMode :: asArray ( ) ) ) { $ this -> roundingMode = $ roundingMode ; } else { $ msg = "The roundingMode argument must be a value from the RoundingMode enumeration, '" . $ roundingMode . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the rounding mode.

@param integer $roundingMode A value from the RoundingMode enumeration.
@throws \InvalidArgumentException If $roundingMode is not a value from the RoundingMode enumeration.
Set the rounding mode .