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\Event; |
13
|
|
|
|
14
|
|
|
use WBW\Bundle\SMSModeBundle\Entity\SendingUnicodeSMSInterface; |
15
|
|
|
use WBW\Library\SMSMode\Model\SendingUnicodeSMSRequest; |
16
|
|
|
use WBW\Library\SMSMode\Model\SendingUnicodeSMSResponse; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Sending unicode SMS event |
20
|
|
|
* |
21
|
|
|
* @author webeweb <https://github.com/webeweb/> |
22
|
|
|
* @package WBW\Bundle\SMSModeBundle\Event |
23
|
|
|
*/ |
24
|
|
|
class SendingUnicodeSMSEvent extends AbstractResponseEvent { |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Sending unicode SMS. |
28
|
|
|
* |
29
|
|
|
* @var SendingUnicodeSMSInterface |
30
|
|
|
*/ |
31
|
|
|
private $sendingUnicodeSMS; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Constructor. |
35
|
|
|
* |
36
|
|
|
* @param SendingUnicodeSMSInterface $sendingUnicodeSMS The sending unicode SMS. |
37
|
|
|
*/ |
38
|
|
|
public function __construct(SendingUnicodeSMSInterface $sendingUnicodeSMS) { |
39
|
|
|
parent::__construct(SMSModeEvents::SENDING_UNICODE_SMS); |
40
|
|
|
$this->setSendingUnicodeSMS($sendingUnicodeSMS); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Get the sending unicode SMS request. |
45
|
|
|
* |
46
|
|
|
* @return SendingUnicodeSMSRequest Returns the sending unicode SMS request. |
47
|
|
|
*/ |
48
|
|
|
public function getRequest() { |
49
|
|
|
return parent::getRequest(); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Get the sending unicode SMS response. |
54
|
|
|
* |
55
|
|
|
* @return SendingUnicodeSMSResponse Returns the sending unicode SMS response. |
56
|
|
|
*/ |
57
|
|
|
public function getResponse() { |
58
|
|
|
return parent::getResponse(); |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* Get the sending unicode SMS. |
63
|
|
|
* |
64
|
|
|
* @return SendingUnicodeSMSInterface Returns the sending unicode SMS. |
65
|
|
|
*/ |
66
|
|
|
public function getSendingUnicodeSMS() { |
67
|
|
|
return $this->sendingUnicodeSMS; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Set the sending unicode SMS. |
72
|
|
|
* |
73
|
|
|
* @param SendingUnicodeSMSInterface $sendingUnicodeSMS The sending unicode SMS. |
74
|
|
|
* @return SendingUnicodeSMSEvent Returns this sending unicode SMS event. |
75
|
|
|
*/ |
76
|
|
|
protected function setSendingUnicodeSMS(SendingUnicodeSMSInterface $sendingUnicodeSMS) { |
77
|
|
|
$this->sendingUnicodeSMS = $sendingUnicodeSMS; |
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
} |
81
|
|
|
|