@@ -58,15 +58,6 @@ class SnsMessage implements Message
58
58
* See AWS documentation for message attribute structure.
59
59
*
60
60
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sns-2010-03-31.html#shape-messageattributevalue
61
- *
62
- * @param string $body
63
- * @param array $properties
64
- * @param array $headers
65
- * @param array|null $messageAttributes
66
- * @param string|null $messageStructure
67
- * @param string|null $phoneNumber
68
- * @param string|null $subject
69
- * @param string|null $targetArn
70
61
*/
71
62
public function __construct (
72
63
string $ body = '' ,
@@ -89,89 +80,58 @@ public function __construct(
89
80
$ this ->redelivered = false ;
90
81
}
91
82
92
- /**
93
- * @return string|null
94
- */
95
83
public function getSnsMessageId (): ?string
96
84
{
97
85
return $ this ->snsMessageId ;
98
86
}
99
87
100
- /**
101
- * @param string|null $snsMessageId
102
- */
103
88
public function setSnsMessageId (?string $ snsMessageId ): void
104
89
{
105
90
$ this ->snsMessageId = $ snsMessageId ;
106
91
}
107
92
108
- /**
109
- * @return string|null
110
- */
111
93
public function getMessageStructure (): ?string
112
94
{
113
95
return $ this ->messageStructure ;
114
96
}
115
97
116
- /**
117
- * @param string|null $messageStructure
118
- */
119
98
public function setMessageStructure (?string $ messageStructure ): void
120
99
{
121
100
$ this ->messageStructure = $ messageStructure ;
122
101
}
123
102
124
- /**
125
- * @return string|null
126
- */
127
103
public function getPhoneNumber (): ?string
128
104
{
129
105
return $ this ->phoneNumber ;
130
106
}
131
107
132
- /**
133
- * @param string|null $phoneNumber
134
- */
135
108
public function setPhoneNumber (?string $ phoneNumber ): void
136
109
{
137
110
$ this ->phoneNumber = $ phoneNumber ;
138
111
}
139
112
140
- /**
141
- * @return string|null
142
- */
143
113
public function getSubject (): ?string
144
114
{
145
115
return $ this ->subject ;
146
116
}
147
117
148
- /**
149
- * @param string|null $subject
150
- */
151
118
public function setSubject (?string $ subject ): void
152
119
{
153
120
$ this ->subject = $ subject ;
154
121
}
155
122
156
- /**
157
- * @return array|null
158
- */
159
123
public function getMessageAttributes (): ?array
160
124
{
161
125
return $ this ->messageAttributes ;
162
126
}
163
127
164
- /**
165
- * @param array|null $messageAttributes
166
- */
167
128
public function setMessageAttributes (?array $ messageAttributes ): void
168
129
{
169
130
$ this ->messageAttributes = $ messageAttributes ;
170
131
}
171
132
172
133
/**
173
- * @param string $name
174
- * @param null $default
134
+ * @param null $default
175
135
*
176
136
* @return array|null
177
137
*/
@@ -187,9 +147,6 @@ public function getAttribute(string $name, $default = null)
187
147
* 'DataType' => '<string>', // REQUIRED
188
148
* 'StringValue' => '<string>',
189
149
* ].
190
- *
191
- * @param string $name
192
- * @param array|null $attribute
193
150
*/
194
151
public function setAttribute (string $ name , ?array $ attribute ): void
195
152
{
@@ -201,7 +158,6 @@ public function setAttribute(string $name, ?array $attribute): void
201
158
}
202
159
203
160
/**
204
- * @param string $name
205
161
* @param string $dataType String, String.Array, Number, or Binary
206
162
* @param string|resource|StreamInterface $value
207
163
*/
@@ -215,17 +171,11 @@ public function addAttribute(string $name, string $dataType, $value): void
215
171
];
216
172
}
217
173
218
- /**
219
- * @return string|null
220
- */
221
174
public function getTargetArn (): ?string
222
175
{
223
176
return $ this ->targetArn ;
224
177
}
225
178
226
- /**
227
- * @param string|null $targetArn
228
- */
229
179
public function setTargetArn (?string $ targetArn ): void
230
180
{
231
181
$ this ->targetArn = $ targetArn ;
@@ -241,17 +191,12 @@ public function setTargetArn(?string $targetArn): void
241
191
* data for multiple users). In this scenario, multiple readers can process the queue, but the session data
242
192
* of each user is processed in a FIFO fashion.
243
193
* For more information, see: https://docs.aws.amazon.com/sns/latest/dg/fifo-message-grouping.html
244
- *
245
- * @param string|null $id
246
194
*/
247
195
public function setMessageGroupId (string $ id = null ): void
248
196
{
249
197
$ this ->messageGroupId = $ id ;
250
198
}
251
199
252
- /**
253
- * @return string|null
254
- */
255
200
public function getMessageGroupId (): ?string
256
201
{
257
202
return $ this ->messageGroupId ;
0 commit comments