public function setAutostart($autostart)
    {
        if (is_bool($autostart) === true) {
            $this->autostart = $autostart;
        } else {
            $msg = "The 'autostart' argument must be a boolean value, '" . gettype($autostart) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAutostart($autostart)
    {
        if (is_bool($autostart) === true) {
            $this->autostart = $autostart;
        } else {
            $msg = "The 'autostart' argument must be a boolean value, '" . gettype($autostart) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAutostart ( $ autostart ) { if ( is_bool ( $ autostart ) === true ) { $ this -> autostart = $ autostart ; } else { $ msg = "The 'autostart' argument must be a boolean value, '" . gettype ( $ autostart ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set whether or not the media must start as soon as the candidate starts the attempt.

@param boolean $autostart
@throws \InvalidArgumentException If $autostart is not a boolean value.
Set whether or not the media must start as soon as the candidate starts the attempt .