MemberChangeRelationEvent.php 544 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: dingran
  5. * Date: 2018/11/20
  6. * Time: 上午7:32
  7. */
  8. namespace app\common\events\member;
  9. use app\common\events\Event;
  10. class MemberChangeRelationEvent extends Event
  11. {
  12. protected $uid;
  13. protected $parent_id;
  14. public function __construct($uid, $parent_id)
  15. {
  16. $this->uid = $uid;
  17. $this->parent_id = $parent_id;
  18. }
  19. public function getUid()
  20. {
  21. return $this->uid;
  22. }
  23. public function getParentId()
  24. {
  25. return $this->parent_id;
  26. }
  27. }