zingimmick/laravel-sms

View on GitHub
src/Gateways/NullGateway.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Zing\LaravelSms\Gateways;

use Overtrue\EasySms\Contracts\MessageInterface;
use Overtrue\EasySms\Contracts\PhoneNumberInterface;
use Overtrue\EasySms\Gateways\Gateway;
use Overtrue\EasySms\Support\Config;

class NullGateway extends Gateway
{
    /**
     * @return array<string, string|bool>
     */
    public function send(PhoneNumberInterface $to, MessageInterface $message, Config $config): array
    {
        return [
            'success' => true,
            'msg' => 'ok',
        ];
    }
}