@@ -31,10 +31,10 @@ class ActionCardMessage extends Message
31
31
/**
32
32
* ActionCardMessage constructor.
33
33
*
34
- * @param string|null $title 首屏会话透出的展示内容
35
- * @param string|null $text markdown 格式的消息
36
- * @param int|null $hideAvatar 0-按钮竖直排列,1-按钮横向排列
37
- * @param int|null $btnOrientation 0-正常发消息者头像,1-隐藏发消息者头像
34
+ * @param string|null $title 首屏会话透出的展示内容
35
+ * @param string|null $text markdown 格式的消息
36
+ * @param int|null $hideAvatar 0-按钮竖直排列,1-按钮横向排列
37
+ * @param int|null $btnOrientation 0-正常发消息者头像,1-隐藏发消息者头像
38
38
*
39
39
* @throws InvalidConfigurationException
40
40
*/
@@ -48,12 +48,12 @@ public function __construct(string $title = null, string $text = null, $hideAvat
48
48
/**
49
49
* ActionCard 的整体跳转和独立跳转两种类型中 title text hideAvatar btnOrientation 都是共同拥有的.
50
50
*
51
- * @param string $title 首屏会话透出的展示内容
52
- * @param string $text markdown 格式的消息
53
- * @param int|null $hideAvatar 0-按钮竖直排列,1-按钮横向排列
54
- * @param int|null $btnOrientation 0-正常发消息者头像,1-隐藏发消息者头像
55
- *
51
+ * @param string $title 首屏会话透出的展示内容
52
+ * @param string $text markdown 格式的消息
53
+ * @param int|null $hideAvatar 0-按钮竖直排列,1-按钮横向排列
54
+ * @param int|null $btnOrientation 0-正常发消息者头像,1-隐藏发消息者头像
56
55
* @return ActionCardMessage
56
+ *
57
57
* @throws InvalidConfigurationException
58
58
*/
59
59
public function setMessage (string $ title , string $ text , $ hideAvatar = null , $ btnOrientation = null ): self
@@ -85,10 +85,9 @@ public function setMessage(string $title, string $text, $hideAvatar = null, $btn
85
85
/**
86
86
* 设置整体跳转类型参数,与独立跳转互斥.
87
87
*
88
- * @param string $singleTitle 单个按钮的方案。(设置此项和singleURL后btns无效。)
89
- * @param string $singleUrl 点击singleTitle按钮触发的URL
90
- * @param bool $pcSlide 链接是否在 PC 端侧栏打开,true 在 PC 端侧栏打开;false 在系统默认浏览器
91
- *
88
+ * @param string $singleTitle 单个按钮的方案。(设置此项和singleURL后btns无效。)
89
+ * @param string $singleUrl 点击singleTitle按钮触发的URL
90
+ * @param bool $pcSlide 链接是否在 PC 端侧栏打开,true 在 PC 端侧栏打开;false 在系统默认浏览器
92
91
* @return $this
93
92
*/
94
93
public function setSingle (string $ singleTitle , string $ singleUrl , bool $ pcSlide = true ): self
@@ -103,10 +102,9 @@ public function setSingle(string $singleTitle, string $singleUrl, bool $pcSlide
103
102
/**
104
103
* 设置独立跳转类型按钮参数,可设置多个,与整体跳转互斥.
105
104
*
106
- * @param string $title 按钮方案
107
- * @param string $actionUrl 点击按钮触发的URL
108
- * @param bool $pcSlide 链接是否在 PC 端侧栏打开,true 在 PC 端侧栏打开;false 在系统默认浏览器
109
- *
105
+ * @param string $title 按钮方案
106
+ * @param string $actionUrl 点击按钮触发的URL
107
+ * @param bool $pcSlide 链接是否在 PC 端侧栏打开,true 在 PC 端侧栏打开;false 在系统默认浏览器
110
108
* @return ActionCardMessage
111
109
*/
112
110
public function addButton (string $ title , string $ actionUrl , bool $ pcSlide = true ): self
0 commit comments