Class MockTopicResponse Only use it for testing
- Class name: MockTopicResponse
- Namespace: LaravelFCM\Test\Mocks
- This class implements: LaravelFCM\Response\TopicResponseContract
mixed LaravelFCM\Test\Mocks\MockTopicResponse::setSuccess($messageId)
if success set a message id
- Visibility: public
- $messageId mixed
boolean LaravelFCM\Response\TopicResponseContract::isSuccess()
true if topic sent with success
- Visibility: public
- This method is defined by LaravelFCM\Response\TopicResponseContract
mixed LaravelFCM\Test\Mocks\MockTopicResponse::setError($error)
set error
- Visibility: public
- $error mixed
string LaravelFCM\Response\TopicResponseContract::error()
return error message you should test if it's necessary to resent it
- Visibility: public
- This method is defined by LaravelFCM\Response\TopicResponseContract
boolean LaravelFCM\Response\TopicResponseContract::shouldRetry()
return true if it's necessary resent it using exponential backoff
- Visibility: public
- This method is defined by LaravelFCM\Response\TopicResponseContract