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\Library\SmsMode\Entity\DeletingSubAccountInterface; |
15
|
|
|
use WBW\Library\SmsMode\Request\DeletingSubAccountRequest; |
16
|
|
|
use WBW\Library\SmsMode\Response\DeletingSubAccountResponse; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Deleting sub-account event. |
20
|
|
|
* |
21
|
|
|
* @author webeweb <https://github.com/webeweb> |
22
|
|
|
* @package WBW\Bundle\SmsModeBundle\Event |
23
|
|
|
*/ |
24
|
|
|
class DeletingSubAccountEvent extends AbstractEvent { |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Event name. |
28
|
|
|
* |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
const EVENT_NAME = "wbw.smsmode.event.deleting_sub_account"; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Constructor. |
35
|
|
|
* |
36
|
|
|
* @param DeletingSubAccountInterface $deletingSubAccount The deleting sub-account. |
37
|
|
|
*/ |
38
|
|
|
public function __construct(DeletingSubAccountInterface $deletingSubAccount) { |
39
|
|
|
parent::__construct(self::EVENT_NAME, $deletingSubAccount); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Get the deleting sub-account. |
44
|
|
|
* |
45
|
|
|
* @return DeletingSubAccountInterface|null Returns the deleting sub-account. |
46
|
|
|
*/ |
47
|
|
|
public function getDeletingSubAccount(): ?DeletingSubAccountInterface { |
48
|
|
|
return $this->getEntity(); |
|
|
|
|
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* Get the deleting sub-account request. |
53
|
|
|
* |
54
|
|
|
* @return DeletingSubAccountRequest|null Returns the deleting sub-account request. |
55
|
|
|
*/ |
56
|
|
|
public function getRequest(): ?DeletingSubAccountRequest { |
57
|
|
|
return parent::getRequest(); |
|
|
|
|
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Get the deleting sub-account response. |
62
|
|
|
* |
63
|
|
|
* @return DeletingSubAccountResponse|null Returns the deleting sub-account response. |
64
|
|
|
*/ |
65
|
|
|
public function getResponse(): ?DeletingSubAccountResponse { |
66
|
|
|
return parent::getResponse(); |
|
|
|
|
67
|
|
|
} |
68
|
|
|
} |
69
|
|
|
|