Total Complexity | 8 |
Total Lines | 89 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class SnsSMS implements SMSProvider |
||
8 | { |
||
9 | /** |
||
10 | * @var SnsClient |
||
11 | */ |
||
12 | private $client; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $sender; |
||
18 | |||
19 | /** |
||
20 | * SnsSMS constructor. |
||
21 | * |
||
22 | * @param SnsClient $client |
||
23 | * @param string $sender |
||
24 | */ |
||
25 | function __construct(SnsClient $client, string $sender) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Sends an sms message. |
||
33 | * |
||
34 | * @param string $to |
||
35 | * @param string $message |
||
36 | * @return array |
||
37 | */ |
||
38 | public function send(string $to, string $message) |
||
80 | ]; |
||
81 | } |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * Checks providers credentials. |
||
86 | * |
||
87 | * @return bool |
||
88 | */ |
||
89 | public function isValid() |
||
96 | } |
||
97 | } |