eee
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
|
||||
namespace wchat\wx;
|
||||
|
||||
use Kiri\Client;
|
||||
use wchat\common\Result;
|
||||
|
||||
class PublicTemplate extends SmallProgram
|
||||
@@ -27,7 +26,7 @@ class PublicTemplate extends SmallProgram
|
||||
/**
|
||||
* @param array $keywords
|
||||
*/
|
||||
public function setKeywords(array $keywords)
|
||||
public function setKeywords(array $keywords): void
|
||||
{
|
||||
$this->keywords = $keywords;
|
||||
}
|
||||
@@ -35,7 +34,7 @@ class PublicTemplate extends SmallProgram
|
||||
/**
|
||||
* @param string $templateId
|
||||
*/
|
||||
public function setTemplateId(string $templateId)
|
||||
public function setTemplateId(string $templateId): void
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
}
|
||||
@@ -43,7 +42,7 @@ class PublicTemplate extends SmallProgram
|
||||
/**
|
||||
* @param string $openId
|
||||
*/
|
||||
public function setOpenId(string $openId)
|
||||
public function setOpenId(string $openId): void
|
||||
{
|
||||
$this->openId = $openId;
|
||||
}
|
||||
@@ -51,7 +50,7 @@ class PublicTemplate extends SmallProgram
|
||||
/**
|
||||
* @param string $defaultUrl
|
||||
*/
|
||||
public function setDefaultUrl(string $defaultUrl)
|
||||
public function setDefaultUrl(string $defaultUrl): void
|
||||
{
|
||||
$this->defaultUrl = $defaultUrl;
|
||||
}
|
||||
@@ -61,7 +60,7 @@ class PublicTemplate extends SmallProgram
|
||||
* @param string $context
|
||||
* @param string $color
|
||||
*/
|
||||
public function replaceKeyword(string $name, string $context, string $color = '')
|
||||
public function replaceKeyword(string $name, string $context, string $color = ''): void
|
||||
{
|
||||
$this->keywords[$name] = ['value' => $context, 'color' => $color];
|
||||
}
|
||||
@@ -72,7 +71,7 @@ class PublicTemplate extends SmallProgram
|
||||
* @param string $context
|
||||
* @param null $color
|
||||
*/
|
||||
public function addKeyword(string $name, string $context, $color = null)
|
||||
public function addKeyword(string $name, string $context, $color = null): void
|
||||
{
|
||||
if (empty($color)) {
|
||||
$color = '#000';
|
||||
@@ -124,7 +123,7 @@ class PublicTemplate extends SmallProgram
|
||||
|
||||
/**
|
||||
* @return Result
|
||||
* @throws \Exception
|
||||
* @throws
|
||||
*
|
||||
* 奴隶交易通知
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user