Skip to content

Instantly share code, notes, and snippets.

@mohammad-fouladgar
Created February 18, 2022 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohammad-fouladgar/43539893a02ab26eda59501e08f3af42 to your computer and use it in GitHub Desktop.
Save mohammad-fouladgar/43539893a02ab26eda59501e08f3af42 to your computer and use it in GitHub Desktop.
<?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