1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the smsmode-bundle package. |
5
|
|
|
* |
6
|
|
|
* (c) 2019 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Bundle\SMSModeBundle\Factory; |
13
|
|
|
|
14
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\AddingContactInterface; |
15
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\CheckingSMSMessageStatusInterface; |
16
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\CreatingSubAccountInterface; |
17
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\DeletingSMSInterface; |
18
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\DeletingSubAccountInterface; |
19
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\DeliveryReportInterface; |
20
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\RetrievingSMSReplyInterface; |
21
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SendingSMSBatchInterface; |
22
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SendingSMSMessageInterface; |
23
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SendingTextToSpeechSMSInterface; |
24
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SendingUnicodeSMSInterface; |
25
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SentSMSMessageListInterface; |
26
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\TransferringCreditsInterface; |
27
|
|
|
use WBW\Library\SMSMode\Model\AddingContactRequest; |
28
|
|
|
use WBW\Library\SMSMode\Model\CheckingSMSMessageStatusRequest; |
29
|
|
|
use WBW\Library\SMSMode\Model\CreatingSubAccountRequest; |
30
|
|
|
use WBW\Library\SMSMode\Model\DeletingSMSRequest; |
31
|
|
|
use WBW\Library\SMSMode\Model\DeletingSubAccountRequest; |
32
|
|
|
use WBW\Library\SMSMode\Model\DeliveryReportRequest; |
33
|
|
|
use WBW\Library\SMSMode\Model\RetrievingSMSReplyRequest; |
34
|
|
|
use WBW\Library\SMSMode\Model\SendingSMSBatchRequest; |
35
|
|
|
use WBW\Library\SMSMode\Model\SendingSMSMessageRequest; |
36
|
|
|
use WBW\Library\SMSMode\Model\SendingTextToSpeechSMSRequest; |
37
|
|
|
use WBW\Library\SMSMode\Model\SendingUnicodeSMSRequest; |
38
|
|
|
use WBW\Library\SMSMode\Model\SentSMSMessageListRequest; |
39
|
|
|
use WBW\Library\SMSMode\Model\TransferringCreditsRequest; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* sMsmode factory. |
43
|
|
|
* |
44
|
|
|
* @author webeweb <https://github.com/webeweb/> |
45
|
|
|
* @package WBW\Bundle\SMSModeBundle\Factory |
46
|
|
|
*/ |
47
|
|
|
class SMSModeFactory { |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Creates an adding contact request. |
51
|
|
|
* |
52
|
|
|
* @param AddingContactInterface $addingContact The adding contact. |
53
|
|
|
* @return AddingContactRequest Returns the adding contact request. |
54
|
|
|
*/ |
55
|
|
|
public static function newAddingContactRequest(AddingContactInterface $addingContact) { |
|
|
|
|
56
|
|
|
|
57
|
|
|
$model = new AddingContactRequest(); |
58
|
|
|
|
59
|
|
|
return $model; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* Creates a checking SMS message status request. |
64
|
|
|
* |
65
|
|
|
* @param CheckingSMSMessageStatusInterface $checkingSMSMessageStatus the checking SMS message status. |
66
|
|
|
* @return CheckingSMSMessageStatusRequest Returns the checking SMS message status request. |
67
|
|
|
*/ |
68
|
|
|
public static function newCheckingSMSMessageStatusRequest(CheckingSMSMessageStatusInterface $checkingSMSMessageStatus) { |
|
|
|
|
69
|
|
|
|
70
|
|
|
$model = new CheckingSMSMessageStatusRequest(); |
71
|
|
|
|
72
|
|
|
return $model; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* Creates a creating sub-account request. |
77
|
|
|
* |
78
|
|
|
* @param CreatingSubAccountInterface $creatingSubAccount the creating sub-account. |
79
|
|
|
* @return CreatingSubAccountRequest Returns the creating sub-account request. |
80
|
|
|
*/ |
81
|
|
|
public static function newCreatingSubAccountRequest(CreatingSubAccountInterface $creatingSubAccount) { |
|
|
|
|
82
|
|
|
|
83
|
|
|
$model = new CreatingSubAccountRequest(); |
84
|
|
|
|
85
|
|
|
return $model; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* Creates a deleting SMS request. |
90
|
|
|
* |
91
|
|
|
* @param DeletingSMSInterface $deletingSMS the deleting SMS. |
92
|
|
|
* @return DeletingSMSRequest Returns the deleting SMS request. |
93
|
|
|
*/ |
94
|
|
|
public static function newDeletingSMSRequest(DeletingSMSInterface $deletingSMS) { |
|
|
|
|
95
|
|
|
|
96
|
|
|
$model = new DeletingSMSRequest(); |
97
|
|
|
|
98
|
|
|
return $model; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* Creates a deleting sub-account request. |
103
|
|
|
* |
104
|
|
|
* @param DeletingSubAccountInterface $deletingSubAccount the deleting sub-account. |
105
|
|
|
* @return DeletingSubAccountRequest Returns the deleting sub-account status request. |
106
|
|
|
*/ |
107
|
|
|
public static function newDeletingSubAccountRequest(DeletingSubAccountInterface $deletingSubAccount) { |
|
|
|
|
108
|
|
|
|
109
|
|
|
$model = new DeletingSubAccountRequest(); |
110
|
|
|
|
111
|
|
|
return $model; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* Creates a delivery report request. |
116
|
|
|
* |
117
|
|
|
* @param DeliveryReportInterface $deliveryReport the delivery report. |
118
|
|
|
* @return DeliveryReportRequest Returns the delivery report request. |
119
|
|
|
*/ |
120
|
|
|
public static function newDeliveryReportRequest(DeliveryReportInterface $deliveryReport) { |
|
|
|
|
121
|
|
|
|
122
|
|
|
$model = new DeliveryReportRequest(); |
123
|
|
|
|
124
|
|
|
return $model; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Creates a retrieving SMS reply request. |
129
|
|
|
* |
130
|
|
|
* @param RetrievingSMSReplyInterface $retrievingSMSReply the retrieving SMS reply. |
131
|
|
|
* @return RetrievingSMSReplyRequest Returns the retrieving SMS reply request. |
132
|
|
|
*/ |
133
|
|
|
public static function newRetrievingSMSReplyRequest(RetrievingSMSReplyInterface $retrievingSMSReply) { |
|
|
|
|
134
|
|
|
|
135
|
|
|
$model = new RetrievingSMSReplyRequest(); |
136
|
|
|
|
137
|
|
|
return $model; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* Creates a sending SMS batch request. |
142
|
|
|
* |
143
|
|
|
* @param SendingSMSBatchInterface $sendingSMSBatch the sending SMS batch. |
144
|
|
|
* @return SendingSMSBatchRequest Returns the sending SMS batch request. |
145
|
|
|
*/ |
146
|
|
|
public static function newSendingSMSBatchRequest(SendingSMSBatchInterface $sendingSMSBatch) { |
|
|
|
|
147
|
|
|
|
148
|
|
|
$model = new SendingSMSBatchRequest(); |
149
|
|
|
|
150
|
|
|
return $model; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* Creates a sending SMS message request. |
155
|
|
|
* |
156
|
|
|
* @param SendingSMSMessageInterface $sendingSMSMessage the sending SMS message. |
157
|
|
|
* @return SendingSMSMessageRequest Returns the sending SMS message request. |
158
|
|
|
*/ |
159
|
|
|
public static function newSendingSMSMessageRequest(SendingSMSMessageInterface $sendingSMSMessage) { |
|
|
|
|
160
|
|
|
|
161
|
|
|
$model = new SendingSMSMessageRequest(); |
162
|
|
|
|
163
|
|
|
return $model; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* Creates a sending text-to-speech SMS request. |
168
|
|
|
* |
169
|
|
|
* @param SendingTextToSpeechSMSInterface $sendingTextToSpeechSMS the sending text-to-speech SMS. |
170
|
|
|
* @return SendingTextToSpeechSMSRequest Returns the sending text-to-speech SMS request. |
171
|
|
|
*/ |
172
|
|
|
public static function newSendingTextToSpeechSMSRequest(SendingTextToSpeechSMSInterface $sendingTextToSpeechSMS) { |
|
|
|
|
173
|
|
|
|
174
|
|
|
$model = new SendingTextToSpeechSMSRequest(); |
175
|
|
|
|
176
|
|
|
return $model; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* Creates a sending unicode SMS request. |
181
|
|
|
* |
182
|
|
|
* @param SendingUnicodeSMSInterface $sendingUnicodeSMS the sending unicode SMS. |
183
|
|
|
* @return SendingUnicodeSMSRequest Returns the sending unicode SMS request. |
184
|
|
|
*/ |
185
|
|
|
public static function newSendingUnicodeSMSRequest(SendingUnicodeSMSInterface $sendingUnicodeSMS) { |
|
|
|
|
186
|
|
|
|
187
|
|
|
$model = new SendingUnicodeSMSRequest(); |
188
|
|
|
|
189
|
|
|
return $model; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* Creates a sent SMS message list request. |
194
|
|
|
* |
195
|
|
|
* @param SentSMSMessageListInterface $sentSMSMessageList the sent SMS message list. |
196
|
|
|
* @return SentSMSMessageListRequest Returns the sent SMS message list request. |
197
|
|
|
*/ |
198
|
|
|
public static function newSentSMSMessageListRequest(SentSMSMessageListInterface $sentSMSMessageList) { |
|
|
|
|
199
|
|
|
|
200
|
|
|
$model = new SentSMSMessageListRequest(); |
201
|
|
|
|
202
|
|
|
return $model; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* Creates a transferring credits request. |
207
|
|
|
* |
208
|
|
|
* @param TransferringCreditsInterface $transferringCredits the transferring credits. |
209
|
|
|
* @return TransferringCreditsRequest Returns the transferring credits request. |
210
|
|
|
*/ |
211
|
|
|
public static function newTransferringCreditsRequest(TransferringCreditsInterface $transferringCredits) { |
|
|
|
|
212
|
|
|
|
213
|
|
|
$model = new TransferringCreditsRequest(); |
214
|
|
|
|
215
|
|
|
return $model; |
216
|
|
|
} |
217
|
|
|
} |
218
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.