public function setMinPlays($minPlays)
    {
        if (is_int($minPlays) === true && $minPlays >= 0) {
            $this->minPlays = $minPlays;
        } else {
            $msg = "The 'minPlays' argument must be a positive (>= 0) integer, '" . gettype($minPlays) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinPlays($minPlays)
    {
        if (is_int($minPlays) === true && $minPlays >= 0) {
            $this->minPlays = $minPlays;
        } else {
            $msg = "The 'minPlays' argument must be a positive (>= 0) integer, '" . gettype($minPlays) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinPlays ( $ minPlays ) { if ( is_int ( $ minPlays ) === true && $ minPlays >= 0 ) { $ this -> minPlays = $ minPlays ; } else { $ msg = "The 'minPlays' argument must be a positive (>= 0) integer, '" . gettype ( $ minPlays ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the minimum number of times the media must be played.

@param integer $minPlays A positive (>= 0) integer.
@throws \InvalidArgumentException If $minPlays is not a positive integer.
Set the minimum number of times the media must be played .