public function AddComment(string $text, int $itemType = GnCommentItemType::Community, string $itemKey = NULL)
    {
        $result = $this->ExecuteCall("AddComment", (object)[
            "itemType" => $itemType,
            "itemKey" => $itemKey,
            "text" => $text
        ], GnResponseType::Json, FALSE, PHP_INT_MAX);

        $this->ClearCacheForActionNames($this::CLEAR_CACHE_PATTERNS);

        return $result;
    }
public function AddComment(string $text, int $itemType = GnCommentItemType::Community, string $itemKey = NULL)
    {
        $result = $this->ExecuteCall("AddComment", (object)[
            "itemType" => $itemType,
            "itemKey" => $itemKey,
            "text" => $text
        ], GnResponseType::Json, FALSE, PHP_INT_MAX);

        $this->ClearCacheForActionNames($this::CLEAR_CACHE_PATTERNS);

        return $result;
    }
public function AddComment ( string $ text , int $ itemType = GnCommentItemType :: Community , string $ itemKey = NULL ) { $ result = $ this -> ExecuteCall ( "AddComment" , ( object ) [ "itemType" => $ itemType , "itemKey" => $ itemKey , "text" => $ text ] , GnResponseType :: Json , FALSE , PHP_INT_MAX ) ; $ this -> ClearCacheForActionNames ( $ this :: CLEAR_CACHE_PATTERNS ) ; return $ result ; }
Adds a new comment.

@param string $text
@param int $itemType
@param string $itemKey
@return string
Adds a new comment .