public function setAllowComment($allowComment)
    {
        if (is_bool($allowComment)) {
            $this->allowComment = $allowComment;
        } else {
            $msg = "AllowComment must be a boolean, '" . gettype($allowComment) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAllowComment($allowComment)
    {
        if (is_bool($allowComment)) {
            $this->allowComment = $allowComment;
        } else {
            $msg = "AllowComment must be a boolean, '" . gettype($allowComment) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAllowComment ( $ allowComment ) { if ( is_bool ( $ allowComment ) ) { $ this -> allowComment = $ allowComment ; } else { $ msg = "AllowComment must be a boolean, '" . gettype ( $ allowComment ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set if the candidate is allowed to communicate comments during the session.

@param boolean $allowComment true if allowed, false if not.
@throws \InvalidArgumentException If $allowComment is not a boolean.
Set if the candidate is allowed to communicate comments during the session .