361 lines
5.5 KiB
PHP
361 lines
5.5 KiB
PHP
<?php
|
|
|
|
namespace wchat\officialaccount\dcaler;
|
|
|
|
|
|
class Authorization
|
|
{
|
|
private $subscribe;
|
|
private $openid;
|
|
private $nickname;
|
|
private $sex;
|
|
private $language;
|
|
private $city;
|
|
private $province;
|
|
private $country;
|
|
private $headimgurl;
|
|
private $subscribe_time;
|
|
private $unionid;
|
|
private $remark;
|
|
private $groupid;
|
|
private $tagid_list;
|
|
private $subscribe_scene;
|
|
private $qr_scene;
|
|
private $qr_scene_str;
|
|
|
|
/**
|
|
* @param $object
|
|
* @return Authorization
|
|
*/
|
|
public static function instance($object)
|
|
{
|
|
$class = new Authorization();
|
|
$class->setSubscribe($object['subscribe']);
|
|
$class->setOpenid($object['openid']);
|
|
$class->setNickname($object['nickname']);
|
|
$class->setSex($object['sex']);
|
|
$class->setLanguage($object['language']);
|
|
$class->setCity($object['city']);
|
|
$class->setProvince($object['province']);
|
|
$class->setCountry($object['country']);
|
|
$class->setHeadimgurl($object['headimgurl']);
|
|
$class->setSubscribeTime($object['subscribe_time']);
|
|
$class->setUnionid($object['unionid']);
|
|
$class->setRemark($object['remark']);
|
|
$class->setGroupid($object['groupid']);
|
|
$class->setTagidList($object['tagid_list']);
|
|
$class->setSubscribeScene($object['subscribe_scene']);
|
|
$class->setQrScene($object['qr_scene']);
|
|
$class->setQrSceneStr($object['qr_scene_str']);
|
|
return $class;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getSubscribe()
|
|
{
|
|
return $this->subscribe;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $subscribe
|
|
* @return Authorization
|
|
*/
|
|
public function setSubscribe($subscribe)
|
|
{
|
|
$this->subscribe = $subscribe;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getOpenid()
|
|
{
|
|
return $this->openid;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $openid
|
|
* @return Authorization
|
|
*/
|
|
public function setOpenid($openid)
|
|
{
|
|
$this->openid = $openid;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getNickname()
|
|
{
|
|
return $this->nickname;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $nickname
|
|
* @return Authorization
|
|
*/
|
|
public function setNickname($nickname)
|
|
{
|
|
$this->nickname = $nickname;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getSex()
|
|
{
|
|
return $this->sex;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $sex
|
|
* @return Authorization
|
|
*/
|
|
public function setSex($sex)
|
|
{
|
|
$this->sex = $sex;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getLanguage()
|
|
{
|
|
return $this->language;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $language
|
|
* @return Authorization
|
|
*/
|
|
public function setLanguage($language)
|
|
{
|
|
$this->language = $language;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getCity()
|
|
{
|
|
return $this->city;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $city
|
|
* @return Authorization
|
|
*/
|
|
public function setCity($city)
|
|
{
|
|
$this->city = $city;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getProvince()
|
|
{
|
|
return $this->province;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $province
|
|
* @return Authorization
|
|
*/
|
|
public function setProvince($province)
|
|
{
|
|
$this->province = $province;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getCountry()
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $country
|
|
* @return Authorization
|
|
*/
|
|
public function setCountry($country)
|
|
{
|
|
$this->country = $country;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getHeadimgurl()
|
|
{
|
|
return $this->headimgurl;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $headimgurl
|
|
* @return Authorization
|
|
*/
|
|
public function setHeadimgurl($headimgurl)
|
|
{
|
|
$this->headimgurl = $headimgurl;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getSubscribeTime()
|
|
{
|
|
return $this->subscribe_time;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $subscribe_time
|
|
* @return Authorization
|
|
*/
|
|
public function setSubscribeTime($subscribe_time)
|
|
{
|
|
$this->subscribe_time = $subscribe_time;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getUnionid()
|
|
{
|
|
return $this->unionid;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $unionid
|
|
* @return Authorization
|
|
*/
|
|
public function setUnionid($unionid)
|
|
{
|
|
$this->unionid = $unionid;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getRemark()
|
|
{
|
|
return $this->remark;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $remark
|
|
* @return Authorization
|
|
*/
|
|
public function setRemark($remark)
|
|
{
|
|
$this->remark = $remark;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getGroupid()
|
|
{
|
|
return $this->groupid;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $groupid
|
|
* @return Authorization
|
|
*/
|
|
public function setGroupid($groupid)
|
|
{
|
|
$this->groupid = $groupid;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getTagidList()
|
|
{
|
|
return $this->tagid_list;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $tagid_list
|
|
* @return Authorization
|
|
*/
|
|
public function setTagidList($tagid_list)
|
|
{
|
|
$this->tagid_list = $tagid_list;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getSubscribeScene()
|
|
{
|
|
return $this->subscribe_scene;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $subscribe_scene
|
|
* @return Authorization
|
|
*/
|
|
public function setSubscribeScene($subscribe_scene)
|
|
{
|
|
$this->subscribe_scene = $subscribe_scene;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getQrScene()
|
|
{
|
|
return $this->qr_scene;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $qr_scene
|
|
* @return Authorization
|
|
*/
|
|
public function setQrScene($qr_scene)
|
|
{
|
|
$this->qr_scene = $qr_scene;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getQrSceneStr()
|
|
{
|
|
return $this->qr_scene_str;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $qr_scene_str
|
|
* @return Authorization
|
|
*/
|
|
public function setQrSceneStr($qr_scene_str)
|
|
{
|
|
$this->qr_scene_str = $qr_scene_str;
|
|
return $this;
|
|
}
|
|
|
|
|
|
}
|