SmsSender.php 340 B

123456789101112
  1. <?php
  2. declare(strict_types=1);
  3. namespace app\miniapi\service;
  4. /** Delivery channel for login codes. Implementations must not leak provider credentials. */
  5. interface SmsSender
  6. {
  7. /** @throws \app\miniapi\exception\ApiException when the message could not be accepted. */
  8. public function send(string $phone, string $content): void;
  9. }