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