public function setUpperBound($upperBound)
    {
        if (is_float($upperBound) || (is_bool($upperBound) && $upperBound === false)) {
            $this->upperBound = $upperBound;
        } else {
            $msg = "The upperBound argument must be a float or false if no upper bound, '" . gettype($upperBound) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setUpperBound($upperBound)
    {
        if (is_float($upperBound) || (is_bool($upperBound) && $upperBound === false)) {
            $this->upperBound = $upperBound;
        } else {
            $msg = "The upperBound argument must be a float or false if no upper bound, '" . gettype($upperBound) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setUpperBound ( $ upperBound ) { if ( is_float ( $ upperBound ) || ( is_bool ( $ upperBound ) && $ upperBound === false ) ) { $ this -> upperBound = $ upperBound ; } else { $ msg = "The upperBound argument must be a float or false if no upper bound, '" . gettype ( $ upperBound ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the upper bound.

@param boolean|float $upperBound An upper bound.
@throws \InvalidArgumentException If $upperBound is not a float value nor false.
Set the upper bound .