Last active
March 25, 2021 10:59
-
-
Save mohammad-fouladgar/8a968e72e502fe63df8ff3b108a67e1f to your computer and use it in GitHub Desktop.
Implements a SMSClient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Fouladgar\MobileVerification\Contracts\SMSClient; | |
use Fouladgar\MobileVerification\Notifications\Messages\Payload; | |
class SampleSMSClient implements SMSClient | |
{ | |
protected $SMSService; | |
/** | |
* @param Payload $payload | |
* | |
* @return mixed | |
*/ | |
public function sendMessage(Payload $payload) | |
{ | |
// preparing SMSService... | |
return $this->SMSService | |
->send($payload->getTo(), $payload->getToken()); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment