WechatMessage.php 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 24/03/2017
  6. * Time: 18:10
  7. */
  8. namespace app\common\events;
  9. class WechatMessage extends Event
  10. {
  11. protected $wechatApp;
  12. protected $server;
  13. protected $message;
  14. protected $plugin;
  15. /**
  16. * WechatMessage constructor.
  17. * @param \app\common\modules\wechat\WechatApplication $wechatApp
  18. * @param \EasyWeChat\Server\Guard $server
  19. * @param array $message
  20. */
  21. public function __construct($wechatApp, $server, $message, $plugin)
  22. {
  23. $this->wechatApp = $wechatApp;
  24. $this->server = $server;
  25. $this->message = $message;
  26. $this->plugin = $plugin;
  27. }
  28. public function getWechatApp()
  29. {
  30. return $this->wechatApp;
  31. }
  32. public function getServer()
  33. {
  34. return $this->server;
  35. }
  36. public function getMessage()
  37. {
  38. return $this->message;
  39. }
  40. public function getPlugin()
  41. {
  42. return $this->plugin;
  43. }
  44. }