diff --git a/src/API/ReviewInvite.php b/src/API/ReviewInvite.php index 4b4cb45..d4baa5d 100644 --- a/src/API/ReviewInvite.php +++ b/src/API/ReviewInvite.php @@ -30,10 +30,10 @@ public function __construct(private Repository $config) * @param string $firstName * @param string $lastName * @param int $delay - * @param int $refCode + * @param string $refCode * @return bool */ - public function sendInvite(string $email, string $firstName, string $lastName, int $delay = 0, int $refCode = 0): bool + public function sendInvite(string $email, string $firstName, string $lastName, int $delay = 0, string $refCode = null): bool { $curl = curl_init(ReviewInvite::$url); diff --git a/src/Models/Reviews/ReviewContentModel.php b/src/Models/Reviews/ReviewContentModel.php index 26fc476..e532deb 100644 --- a/src/Models/Reviews/ReviewContentModel.php +++ b/src/Models/Reviews/ReviewContentModel.php @@ -1,5 +1,4 @@ answerToQuestion; } + /** + * @return string + */ + public function getRating(): string + { + return $this->rating; + } + /** * @return string */ @@ -35,7 +43,7 @@ public function getQuestionType(): string /** * @return string */ - public function getOrder(): string + public function getOrder(): int { return $this->order; }