diff options
author | Andrew Dolgov <[email protected]> | 2021-11-13 20:07:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-13 20:07:13 +0300 |
commit | fe5ada72504705f9304c3f0bba049a20998fe650 (patch) | |
tree | 55c55e87975fc573601419da39d379ef27cf890d /classes/plugin.php | |
parent | 5e34fe17a7717b6484e1c7f8a31e3f57e71ab45d (diff) |
set some annotations on Plugin hook methods
Diffstat (limited to 'classes/plugin.php')
-rw-r--r-- | classes/plugin.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/plugin.php b/classes/plugin.php index feae9ec9c..638cc2f50 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -96,22 +96,39 @@ abstract class Plugin { /* plugin hook methods */ + /** + * @param array<string,mixed> $line + * @return string + */ function hook_article_button($line) { user_error("Dummy method invoked.", E_USER_ERROR); } + /** + * @param array<string,mixed> $article + * @return array<string,mixed> + */ function hook_article_filter($article) { user_error("Dummy method invoked.", E_USER_ERROR); } + /** + * @param string $tab + * @return void + */ function hook_prefs_tab($tab) { user_error("Dummy method invoked.", E_USER_ERROR); } + /** + * @param string $section + * @return void + */ function hook_prefs_tab_section($section) { user_error("Dummy method invoked.", E_USER_ERROR); } + /** @return void */ function hook_prefs_tabs() { user_error("Dummy method invoked.", E_USER_ERROR); } |