eee
This commit is contained in:
+18
-18
@@ -33,46 +33,46 @@ class PublicTemplate extends SmallProgram
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $templateId
|
||||
* @param string $templateId
|
||||
*/
|
||||
public function setTemplateId($templateId)
|
||||
public function setTemplateId(string $templateId)
|
||||
{
|
||||
$this->templateId = $templateId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $openId
|
||||
* @param string $openId
|
||||
*/
|
||||
public function setOpenId($openId)
|
||||
public function setOpenId(string $openId)
|
||||
{
|
||||
$this->openId = $openId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $defaultUrl
|
||||
* @param string $defaultUrl
|
||||
*/
|
||||
public function setDefaultUrl($defaultUrl)
|
||||
public function setDefaultUrl(string $defaultUrl)
|
||||
{
|
||||
$this->defaultUrl = $defaultUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param $context
|
||||
* @param string $name
|
||||
* @param string $context
|
||||
* @param string $color
|
||||
*/
|
||||
public function replaceKeyword($name, $context, string $color = '')
|
||||
public function replaceKeyword(string $name, string $context, string $color = '')
|
||||
{
|
||||
$this->keywords[$name] = ['value' => $context, 'color' => $color];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param $context
|
||||
* @param string $name
|
||||
* @param string $context
|
||||
* @param null $color
|
||||
*/
|
||||
public function addKeyword($name, $context, $color = null)
|
||||
public function addKeyword(string $name, string $context, $color = null)
|
||||
{
|
||||
if (empty($color)) {
|
||||
$color = '#000';
|
||||
@@ -84,11 +84,11 @@ class PublicTemplate extends SmallProgram
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $context
|
||||
* @param string $context
|
||||
* @param string $color
|
||||
* @return void
|
||||
*/
|
||||
public function setFirst($context, string $color = '#f00'): void
|
||||
public function setFirst(string $context, string $color = '#f00'): void
|
||||
{
|
||||
$this->first = [
|
||||
'value' => $context,
|
||||
@@ -97,11 +97,11 @@ class PublicTemplate extends SmallProgram
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $context
|
||||
* @param string $context
|
||||
* @param string $color
|
||||
* @return void
|
||||
*/
|
||||
public function setRemark($context, string $color = '#000'): void
|
||||
public function setRemark(string $context, string $color = '#000'): void
|
||||
{
|
||||
$this->remark = [
|
||||
'value' => $context,
|
||||
@@ -110,11 +110,11 @@ class PublicTemplate extends SmallProgram
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $appid
|
||||
* @param string $appid
|
||||
* @param string $pagepath
|
||||
* @return void
|
||||
*/
|
||||
public function setMiniprogram($appid, string $pagepath): void
|
||||
public function setMiniprogram(string $appid, string $pagepath): void
|
||||
{
|
||||
$this->miniprogram = [
|
||||
'appid' => $appid,
|
||||
|
||||
Reference in New Issue
Block a user