Created
February 18, 2022 10:39
-
-
Save mohammad-fouladgar/43539893a02ab26eda59501e08f3af42 to your computer and use it in GitHub Desktop.
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\OTP\Contracts\SMSClient; | |
use Fouladgar\OTP\Notifications\Messages\MessagePayload; | |
class SampleSMSClient implements SMSClient | |
{ | |
public function __construct(protected SampleSMSService $SMSService) | |
{ | |
} | |
public function sendMessage(MessagePayload $payload): mixed | |
{ | |
return $this->SMSService->send($payload->to(), $payload->content()); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment