OrderPayVoiceEvent.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2021/8/9
  8. * Time: 10:35
  9. */
  10. namespace app\common\events\order;
  11. use app\common\events\Event;
  12. use app\common\models\Order;
  13. class OrderPayVoiceEvent extends Event
  14. {
  15. protected $data;
  16. protected $voiceText;
  17. /**
  18. * @var Order
  19. */
  20. protected $order;
  21. /**
  22. * OrderPayVoiceEvent constructor.
  23. * @param $order
  24. * @param $voiceText
  25. */
  26. public function __construct($order, $voiceText)
  27. {
  28. $this->order = $order;
  29. $this->voiceText = $voiceText;
  30. }
  31. public function getOrderModel()
  32. {
  33. return $this->order;
  34. }
  35. public function getVoiceText()
  36. {
  37. return $this->voiceText;
  38. }
  39. public function changeText($voiceText)
  40. {
  41. $this->voiceText = $voiceText;
  42. }
  43. }