Skip to content

Commit 374a20e

Browse files
koriymclaude
andcommitted
docs: Complete method signatures in example code
Add method bodies ({ ... }) to all example method signatures to make the code syntactically complete and easier to understand. Address CodeRabbit review comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ee6ece9 commit 374a20e

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

src-annotation/CacheableResponse.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@
2222
* class Article extends ResourceObject
2323
* {
2424
* public function onGet(int $id): static
25+
* {
26+
* // ...
27+
* }
2528
*
2629
* #[RefreshCache]
2730
* public function onDelete(int $id): static
31+
* {
32+
* // ...
33+
* }
2834
* }
2935
* ```
3036
*

src-annotation/DonutCache.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
* {
2323
* #[Embed(rel: 'comment', src: 'app://self/comments')]
2424
* public function onGet(int $id): static
25+
* {
26+
* // ...
27+
* }
2528
* }
2629
* ```
2730
*

src-annotation/Purge.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
* #[Purge(uri: 'app://self/user/profile?user_id={id}')]
2121
* #[Purge(uri: 'app://self/user/friend?user_id={id}')]
2222
* public function onDelete(int $id): static
23+
* {
24+
* // ...
25+
* }
2326
* ```
2427
*
2528
* @see https://bearsunday.github.io/manuals/1.0/en/cache.html#tag-based-cache-invalidation

src-annotation/Refresh.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* ```php
2020
* #[Refresh(uri: 'app://self/user/profile?user_id={id}')]
2121
* public function onPut(int $id, string $name): static
22+
* {
23+
* // ...
24+
* }
2225
* ```
2326
*
2427
* @see https://bearsunday.github.io/manuals/1.0/en/cache.html#event-driven-content

0 commit comments

Comments
 (0)