@@ -37,93 +37,87 @@ class Message implements IMessage
37
37
protected float $ workingTimeout = 0 ;
38
38
39
39
/**
40
- * 获取消息 ID.
40
+ * {@inheritDoc}
41
41
*/
42
42
public function getMessageId (): string
43
43
{
44
44
return $ this ->messageId ;
45
45
}
46
46
47
47
/**
48
- * 设置消息 ID.
48
+ * {@inheritDoc}
49
49
*/
50
50
public function setMessageId (string $ messageId ): void
51
51
{
52
52
$ this ->messageId = $ messageId ;
53
53
}
54
54
55
55
/**
56
- * 获取消息内容.
56
+ * {@inheritDoc}
57
57
*/
58
58
public function getMessage (): string
59
59
{
60
60
return $ this ->message ;
61
61
}
62
62
63
63
/**
64
- * 设置消息内容.
64
+ * {@inheritDoc}
65
65
*/
66
66
public function setMessage (string $ message ): void
67
67
{
68
68
$ this ->message = $ message ;
69
69
}
70
70
71
71
/**
72
- * 获取工作超时时间,单位:秒.
72
+ * {@inheritDoc}
73
73
*/
74
74
public function getWorkingTimeout (): float
75
75
{
76
76
return $ this ->workingTimeout ;
77
77
}
78
78
79
79
/**
80
- * 设置工作超时时间,单位:秒.
81
- *
82
- * @param float $workingTimeout
80
+ * {@inheritDoc}
83
81
*/
84
- public function setWorkingTimeout ($ workingTimeout ): void
82
+ public function setWorkingTimeout (float $ workingTimeout ): void
85
83
{
86
84
$ this ->workingTimeout = (float ) $ workingTimeout ;
87
85
}
88
86
89
87
/**
90
- * 获取已重试次数.
88
+ * {@inheritDoc}
91
89
*/
92
90
public function getRetryCount (): int
93
91
{
94
92
return $ this ->retryCount ;
95
93
}
96
94
97
95
/**
98
- * 获取重试次数.
99
- *
100
- * @param int $retryCount
96
+ * {@inheritDoc}
101
97
*/
102
- public function setRetryCount ($ retryCount ): void
98
+ public function setRetryCount (int $ retryCount ): void
103
99
{
104
100
$ this ->retryCount = (int ) $ retryCount ;
105
101
}
106
102
107
103
/**
108
- * 获取最大重试次数.
104
+ * {@inheritDoc}
109
105
*/
110
106
public function getMaxRetryCount (): int
111
107
{
112
108
return $ this ->maxRetryCount ;
113
109
}
114
110
115
111
/**
116
- * 获取最大重试次数.
117
- *
118
- * @param int $maxRetryCount
112
+ * {@inheritDoc}
119
113
*/
120
- public function setMaxRetryCount ($ maxRetryCount ): void
114
+ public function setMaxRetryCount (int $ maxRetryCount ): void
121
115
{
122
116
$ this ->maxRetryCount = (int ) $ maxRetryCount ;
123
117
}
124
118
125
119
/**
126
- * 将当前对象作为数组返回.
120
+ * {@inheritDoc}
127
121
*/
128
122
public function toArray (): array
129
123
{
@@ -137,7 +131,7 @@ public function toArray(): array
137
131
}
138
132
139
133
/**
140
- * 从数组加载数据.
134
+ * {@inheritDoc}
141
135
*/
142
136
public function loadFromArray (array $ data ): void
143
137
{
0 commit comments