SmsEvent.php 776 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: yunzhong
  5. * Date: 2019/12/6
  6. * Time: 9:50
  7. */
  8. namespace app\common\events;
  9. class SmsEvent extends \app\common\events\Event
  10. {
  11. /**
  12. * @var 手机号码
  13. */
  14. public $mobile;
  15. /**
  16. * @var 随机验证码
  17. */
  18. public $code;
  19. /**
  20. * SmsMessage constructor.
  21. * @param array $params
  22. *
  23. */
  24. private $sms = [];
  25. function __construct($mobile,$code,$sms)
  26. {
  27. $this->mobile = $mobile;
  28. $this->sms = $sms;
  29. $this->code = $code;
  30. }
  31. public function getSmsData()
  32. {
  33. return $this->sms;
  34. }
  35. public function getSmsMobile()
  36. {
  37. return $this->mobile;
  38. }
  39. public function getSmsCode()
  40. {
  41. return $this->code;
  42. }
  43. }