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);
        }
    }