@@ -37,93 +37,87 @@ class Message implements IMessage
3737 protected float $ workingTimeout = 0 ;
3838
3939 /**
40- * 获取消息 ID.
40+ * {@inheritDoc}
4141 */
4242 public function getMessageId (): string
4343 {
4444 return $ this ->messageId ;
4545 }
4646
4747 /**
48- * 设置消息 ID.
48+ * {@inheritDoc}
4949 */
5050 public function setMessageId (string $ messageId ): void
5151 {
5252 $ this ->messageId = $ messageId ;
5353 }
5454
5555 /**
56- * 获取消息内容.
56+ * {@inheritDoc}
5757 */
5858 public function getMessage (): string
5959 {
6060 return $ this ->message ;
6161 }
6262
6363 /**
64- * 设置消息内容.
64+ * {@inheritDoc}
6565 */
6666 public function setMessage (string $ message ): void
6767 {
6868 $ this ->message = $ message ;
6969 }
7070
7171 /**
72- * 获取工作超时时间,单位:秒.
72+ * {@inheritDoc}
7373 */
7474 public function getWorkingTimeout (): float
7575 {
7676 return $ this ->workingTimeout ;
7777 }
7878
7979 /**
80- * 设置工作超时时间,单位:秒.
81- *
82- * @param float $workingTimeout
80+ * {@inheritDoc}
8381 */
84- public function setWorkingTimeout ($ workingTimeout ): void
82+ public function setWorkingTimeout (float $ workingTimeout ): void
8583 {
8684 $ this ->workingTimeout = (float ) $ workingTimeout ;
8785 }
8886
8987 /**
90- * 获取已重试次数.
88+ * {@inheritDoc}
9189 */
9290 public function getRetryCount (): int
9391 {
9492 return $ this ->retryCount ;
9593 }
9694
9795 /**
98- * 获取重试次数.
99- *
100- * @param int $retryCount
96+ * {@inheritDoc}
10197 */
102- public function setRetryCount ($ retryCount ): void
98+ public function setRetryCount (int $ retryCount ): void
10399 {
104100 $ this ->retryCount = (int ) $ retryCount ;
105101 }
106102
107103 /**
108- * 获取最大重试次数.
104+ * {@inheritDoc}
109105 */
110106 public function getMaxRetryCount (): int
111107 {
112108 return $ this ->maxRetryCount ;
113109 }
114110
115111 /**
116- * 获取最大重试次数.
117- *
118- * @param int $maxRetryCount
112+ * {@inheritDoc}
119113 */
120- public function setMaxRetryCount ($ maxRetryCount ): void
114+ public function setMaxRetryCount (int $ maxRetryCount ): void
121115 {
122116 $ this ->maxRetryCount = (int ) $ maxRetryCount ;
123117 }
124118
125119 /**
126- * 将当前对象作为数组返回.
120+ * {@inheritDoc}
127121 */
128122 public function toArray (): array
129123 {
@@ -137,7 +131,7 @@ public function toArray(): array
137131 }
138132
139133 /**
140- * 从数组加载数据.
134+ * {@inheritDoc}
141135 */
142136 public function loadFromArray (array $ data ): void
143137 {
0 commit comments