From 50fe1245afe2e9d35c6227de0fbc67b0367e34d6 Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:10:40 +0400 Subject: [PATCH] add example to phpdoc of `getCountOverTime` --- src/controllers/api/Reviews.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/Reviews.php b/src/controllers/api/Reviews.php index aee5f82..c93df02 100644 --- a/src/controllers/api/Reviews.php +++ b/src/controllers/api/Reviews.php @@ -206,7 +206,31 @@ public function deleteReview(): void } /** - * Gets the number of reviews for each month + * Gets the number of reviews for each month. + * + *
+ * [ + * { + * "date": "2024-04-01", + * "totalReviews": 1, + * "positiveReviews": "0", + * "negativeReviews": "1" + * }, + * { + * "date": "2024-05-01", + * "totalReviews": 9, + * "positiveReviews": "4", + * "negativeReviews": "5" + * }, + * { + * "date": "2024-06-01", + * "totalReviews": 1, + * "positiveReviews": "1", + * "negativeReviews": "0" + * } + * ] + *+ * * @return void */ public function getCountOverTime(): void