40 lines
586 B
PHP
40 lines
586 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* Author:
|
|
* Date: 2017/4/6
|
|
* Time: 下午9:47
|
|
*/
|
|
|
|
namespace app\common\events\member;
|
|
|
|
|
|
use app\common\events\Event;
|
|
|
|
class BecomeAgent extends Event
|
|
{
|
|
protected $mid;
|
|
|
|
protected $user;
|
|
|
|
public function __construct($mid, $model)
|
|
{
|
|
if (!empty($mid)) {
|
|
$this->mid = $mid;
|
|
} else {
|
|
$this->mid = 0;
|
|
}
|
|
|
|
$this->user = $model;
|
|
}
|
|
|
|
public function getMid()
|
|
{
|
|
return $this->mid;
|
|
}
|
|
|
|
public function getMemberModel()
|
|
{
|
|
return $this->user;
|
|
}
|
|
} |