public function setUpperBound($upperBound)
    {
        if (is_float($upperBound) === true) {
            $this->upperBound = $upperBound;
        } else {
            $msg = "The 'upperBound' argument must be a float value, '" . gettype($upperBound) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setUpperBound($upperBound)
    {
        if (is_float($upperBound) === true) {
            $this->upperBound = $upperBound;
        } else {
            $msg = "The 'upperBound' argument must be a float value, '" . gettype($upperBound) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setUpperBound ( $ upperBound ) { if ( is_float ( $ upperBound ) === true ) { $ this -> upperBound = $ upperBound ; } else { $ msg = "The 'upperBound' argument must be a float value, '" . gettype ( $ upperBound ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the value of the upperBound attribute.

@param float $upperBound A float value.
@throws \InvalidArgumentException If $upperBound is not a float value.
Set the value of the upperBound attribute .