public function setMatchMax($matchMax)
    {
        if (is_int($matchMax) === true && $matchMax >= 0) {
            $this->matchMax = $matchMax;
        } else {
            $msg = "The 'matchMax' argument must be a positive integer, '" . gettype($matchMax) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMatchMax($matchMax)
    {
        if (is_int($matchMax) === true && $matchMax >= 0) {
            $this->matchMax = $matchMax;
        } else {
            $msg = "The 'matchMax' argument must be a positive integer, '" . gettype($matchMax) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMatchMax ( $ matchMax ) { if ( is_int ( $ matchMax ) === true && $ matchMax >= 0 ) { $ this -> matchMax = $ matchMax ; } else { $ msg = "The 'matchMax' argument must be a positive integer, '" . gettype ( $ matchMax ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the matchMax of the associableHotspot.

@param integer $matchMax A positive (>= 0) integer.
@throws \InvalidArgumentException If $matchMax is not a positive integer.
Set the matchMax of the associableHotspot .