MessageServiceInterface.php 679 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @author mybsdc <[email protected]>
  4. * @date 2021/10/20
  5. * @time 11:46
  6. */
  7. namespace Luolongfei\Libs\Connector;
  8. /**
  9. * 所有消息类需要实现的接口
  10. */
  11. interface MessageServiceInterface
  12. {
  13. /**
  14. * 送信
  15. *
  16. * @param string $content
  17. * @param string $subject
  18. * @param integer $type 消息类型 1:普通消息 2:域名续期结果 3:无需续期,域名状态信件
  19. * @param array $data
  20. * @param string|null $recipient
  21. * @param ...$params
  22. *
  23. * @return bool
  24. */
  25. public function send(string $content, string $subject = '', int $type = 1, array $data = [], ?string $recipient = null, ...$params);
  26. }