add clear
This commit is contained in:
@@ -10,21 +10,21 @@ namespace wchat\wx;
|
||||
*/
|
||||
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 = '';
|
||||
private mixed $_ToUserName = '';
|
||||
private mixed $_FromUserName = '';
|
||||
private mixed $_CreateTime = '';
|
||||
private mixed $_MsgType = '';
|
||||
private mixed $_Event = '';
|
||||
private mixed $_isrisky = '';
|
||||
private mixed $_extra_info_json = '';
|
||||
private mixed $_appid = '';
|
||||
private mixed $_trace_id = '';
|
||||
private mixed $_status_code = '';
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getToUserName()
|
||||
public function getToUserName(): mixed
|
||||
{
|
||||
return $this->_ToUserName;
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFromUserName()
|
||||
public function getFromUserName(): mixed
|
||||
{
|
||||
return $this->_FromUserName;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateTime()
|
||||
public function getCreateTime(): mixed
|
||||
{
|
||||
return $this->_CreateTime;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMsgType()
|
||||
public function getMsgType(): mixed
|
||||
{
|
||||
return $this->_MsgType;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEvent()
|
||||
public function getEvent(): mixed
|
||||
{
|
||||
return $this->_Event;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIsrisky()
|
||||
public function getIsrisky(): mixed
|
||||
{
|
||||
return $this->_isrisky;
|
||||
}
|
||||
@@ -72,7 +72,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExtraInfoJson()
|
||||
public function getExtraInfoJson(): mixed
|
||||
{
|
||||
return $this->_extra_info_json;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAppid()
|
||||
public function getAppid(): mixed
|
||||
{
|
||||
return $this->_appid;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTraceId()
|
||||
public function getTraceId(): mixed
|
||||
{
|
||||
return $this->_trace_id;
|
||||
}
|
||||
@@ -96,16 +96,16 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusCode()
|
||||
public function getStatusCode(): mixed
|
||||
{
|
||||
return $this->_status_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $params
|
||||
* @return ContentAsyncCheck|null
|
||||
* @return ContentAsyncCheck
|
||||
*/
|
||||
public static function instance(array $params)
|
||||
public static function instance(array $params): static
|
||||
{
|
||||
static $class = null;
|
||||
if ($class === null) {
|
||||
@@ -118,7 +118,7 @@ class ContentAsyncCheck
|
||||
* @param $params
|
||||
* @return $this
|
||||
*/
|
||||
private function init($params)
|
||||
private function init($params): static
|
||||
{
|
||||
foreach ($params as $item => $param) {
|
||||
$this->{'_' . $item} = $param;
|
||||
@@ -129,7 +129,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isRisky()
|
||||
public function isRisky(): bool
|
||||
{
|
||||
return intval($this->_isrisky) === 0;
|
||||
}
|
||||
@@ -137,7 +137,7 @@ class ContentAsyncCheck
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuccess()
|
||||
public function isSuccess(): bool
|
||||
{
|
||||
return $this->_status_code === 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user