WechatPayMessage.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2022/7/15
  8. * Time: 16:34
  9. */
  10. namespace app\common\events;
  11. /**
  12. * 打算做微信支付的事件通知类
  13. * Class WechatPayMessage
  14. * @package app\common\events
  15. */
  16. class WechatPayMessage extends Event
  17. {
  18. protected $wechatApp;
  19. protected $server;
  20. protected $message;
  21. protected $plugin;
  22. /**
  23. * WechatMessage constructor.
  24. * @param \app\common\modules\wechat\WechatApplication $wechatApp
  25. * @param \EasyWeChat\Server\Guard $server
  26. * @param array $message
  27. */
  28. public function __construct($wechatApp, $server, $message, $plugin)
  29. {
  30. $this->wechatApp = $wechatApp;
  31. $this->server = $server;
  32. $this->message = $message;
  33. $this->plugin = $plugin;
  34. }
  35. public function getWechatApp()
  36. {
  37. return $this->wechatApp;
  38. }
  39. public function getServer()
  40. {
  41. return $this->server;
  42. }
  43. public function getMessage()
  44. {
  45. return $this->message;
  46. }
  47. public function getPlugin()
  48. {
  49. return $this->plugin;
  50. }
  51. }