Skip to content

Commit

Permalink
Merge pull request #31 from codebyray/develop
Browse files Browse the repository at this point in the history
Aggregrate fixes as per upstream PR
  • Loading branch information
codebyray authored Dec 21, 2021
2 parents 9ccd2a7 + ce265f6 commit 235c148
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 75 deletions.
26 changes: 13 additions & 13 deletions src/Contracts/ReviewRateable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,79 +14,79 @@ public function ratings();
/**
*
* @param $round
* @return mixed
* @return double
*/
public function averageRating($round = null);

/**
*
* @param $round
* @return mixed
* @return double
*/
public function averageCustomerServiceRating($round = null);

/**
*
* @param $round
* @return mixed
* @return double
*/
public function averageQualityRating($round = null);

/**
*
* @param $round
* @return mixed
* @return double
*/
public function averageFriendlyRating($round = null);

/**
*
* @param $round
* @return mixed
* @return double
*/
public function averagePricingRating($round = null);

/**
*
* @return mixed
* @return int
*/
public function countRating();

/**
*
* @return mixed
* @return int
*/
public function countCustomerServiceRating();

/**
*
* @return mixed
* @return int
*/
public function countQualityRating();

/**
*
* @return mixed
* @return int
*/
public function countFriendlyRating();

/**
*
* @return mixed
* @return int
*/
public function countPriceRating();

/**
*
* @return mixed
* @return double
*/
public function sumRating();

/**
*
* @param $max
*
* @return mixed
* @return double
*/
public function ratingPercent($max = 5);

Expand All @@ -96,7 +96,7 @@ public function ratingPercent($max = 5);
* @param $author
* @param $parent
*
* @return mixed
* @return static
*/
public function rating($data, Model $author, Model $parent = null);

Expand Down
Loading

0 comments on commit 235c148

Please sign in to comment.