add clear
This commit is contained in:
@@ -1,145 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace wchat;
|
||||
|
||||
|
||||
/**
|
||||
* Class ContentAsyncCheck
|
||||
* @package wchat
|
||||
*/
|
||||
class ContentAsyncCheck
|
||||
{
|
||||
private $_ToUserName = '';
|
||||
private $_FromUserName = '';
|
||||
private $_CreateTime = '';
|
||||
private $_MsgType = '';
|
||||
private $_Event = '';
|
||||
private $_isrisky = '';
|
||||
private $_extra_info_json = '';
|
||||
private $_appid = '';
|
||||
private $_trace_id = '';
|
||||
private $_status_code = '';
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getToUserName(): string
|
||||
{
|
||||
return $this->_ToUserName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFromUserName(): string
|
||||
{
|
||||
return $this->_FromUserName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateTime(): string
|
||||
{
|
||||
return $this->_CreateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMsgType(): string
|
||||
{
|
||||
return $this->_MsgType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEvent(): string
|
||||
{
|
||||
return $this->_Event;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIsrisky(): string
|
||||
{
|
||||
return $this->_isrisky;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExtraInfoJson(): string
|
||||
{
|
||||
return $this->_extra_info_json;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAppid(): string
|
||||
{
|
||||
return $this->_appid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTraceId(): string
|
||||
{
|
||||
return $this->_trace_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusCode(): string
|
||||
{
|
||||
return $this->_status_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $params
|
||||
* @return ContentAsyncCheck|null
|
||||
*/
|
||||
public static function instance(array $params)
|
||||
{
|
||||
static $class = null;
|
||||
if ($class === null) {
|
||||
$class = new ContentAsyncCheck();
|
||||
}
|
||||
return $class->init($params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return $this
|
||||
*/
|
||||
private function init($params)
|
||||
{
|
||||
foreach ($params as $item => $param) {
|
||||
$this->{'_' . $item} = $param;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isRisky()
|
||||
{
|
||||
return intval($this->_isrisky) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuccess()
|
||||
{
|
||||
return $this->_status_code === 0;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user