PluginCreateRelationEvent.php 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: win 10
  5. * Date: 2019/4/10
  6. * Time: 11:25
  7. */
  8. namespace app\common\events\member;
  9. use app\common\events\Event;
  10. class PluginCreateRelationEvent extends Event
  11. {
  12. protected $parent_id;
  13. protected $model;
  14. protected $mark_id;
  15. protected $mark;
  16. public function __construct($mid, $model, $mark, $mark_id)
  17. {
  18. $this->parent_id = $mid;
  19. $this->model = $model;
  20. $this->mark_id = $mark_id;
  21. $this->mark = $mark;
  22. }
  23. public function getParentId()
  24. {
  25. return $this->parent_id;
  26. }
  27. public function getModel()
  28. {
  29. return $this->model;
  30. }
  31. public function getMarkId()
  32. {
  33. return $this->mark_id;
  34. }
  35. public function getMark()
  36. {
  37. return $this->mark;
  38. }
  39. }