Skip to content

Commit

Permalink
add example to phpdoc of getCountOverTime
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Oct 8, 2024
1 parent 67ad1b1 commit 50fe124
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/controllers/api/Reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,31 @@ public function deleteReview(): void
}

/**
* Gets the number of reviews for each month
* Gets the number of reviews for each month.
*
* <pre>
* [
* {
* "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"
* }
* ]
* </pre>
*
* @return void
*/
public function getCountOverTime(): void
Expand Down

0 comments on commit 50fe124

Please sign in to comment.