Skip to content

Commit 246396f

Browse files
committed
polish phpdocs of comment endpoint
1 parent 1e4f0ff commit 246396f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Endpoints/Comments.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ public function __construct(Notion $notion)
3939

4040
/**
4141
* Retrieve a list of comments
42-
* url: https://api.notion.com/{version}/comments?block_id=* [get]
43-
* notion-api-docs: https://developers.notion.com/reference/retrieve-a-comment.
42+
* @url https://api.notion.com/{version}/comments?block_id=* [get]
43+
* @reference https://developers.notion.com/reference/retrieve-a-comment.
4444
*
4545
* @param string $blockId
4646
* @return CommentCollection
4747
*
48-
* @throws HandlingException
4948
* @throws NotionException
5049
*/
5150
public function ofBlock(string $blockId): CommentCollection
@@ -89,13 +88,12 @@ public function onPage(string $pageId): self
8988

9089
/**
9190
* Create a comment
92-
* url: https://api.notion.com/{version}/comments [post]
93-
* notion-api-docs: https://developers.notion.com/reference/create-a-comment.
91+
* @url https://api.notion.com/{version}/comments [post]
92+
* @reference https://developers.notion.com/reference/create-a-comment.
9493
*
9594
* @param CommentEntity $comment
9695
* @return CommentEntity
9796
*
98-
* @throws HandlingException
9997
* @throws NotionException
10098
*/
10199
public function create($comment): CommentEntity

0 commit comments

Comments
 (0)