public function setMasteryValue($masteryValue)
    {
        if (is_numeric($masteryValue) || (is_bool($masteryValue) && $masteryValue === false)) {
            $this->masteryValue = $masteryValue;
        } else {
            $msg = "MasteryValue must be a number or (boolean) false, '" . gettype($masteryValue) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMasteryValue($masteryValue)
    {
        if (is_numeric($masteryValue) || (is_bool($masteryValue) && $masteryValue === false)) {
            $this->masteryValue = $masteryValue;
        } else {
            $msg = "MasteryValue must be a number or (boolean) false, '" . gettype($masteryValue) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMasteryValue ( $ masteryValue ) { if ( is_numeric ( $ masteryValue ) || ( is_bool ( $ masteryValue ) && $ masteryValue === false ) ) { $ this -> masteryValue = $ masteryValue ; } else { $ msg = "MasteryValue must be a number or (boolean) false, '" . gettype ( $ masteryValue ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the mastery value. Set to false if not specified.

@param boolean|number $masteryValue A numeric value or false.
@throws \InvalidArgumentException If $masteryValue is not numeric nor false.
Set the mastery value . Set to false if not specified .