BecomeAgent.php 614 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/4/6
  6. * Time: 下午9:47
  7. */
  8. namespace app\common\events\member;
  9. use app\common\events\Event;
  10. class BecomeAgent extends Event
  11. {
  12. protected $mid;
  13. protected $user;
  14. public function __construct($mid, $model)
  15. {
  16. if (!empty($mid)) {
  17. $this->mid = $mid;
  18. } else {
  19. $this->mid = 0;
  20. }
  21. $this->user = $model;
  22. }
  23. public function getMid()
  24. {
  25. return $this->mid;
  26. }
  27. public function getMemberModel()
  28. {
  29. return $this->user;
  30. }
  31. }