Completed
Push — master ( 44c8cf...8136fc )
by WEBEWEB
01:28
created

DeletingSubAccountEvent::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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\DeletingSubAccountInterface;
15
use WBW\Library\SMSMode\Model\DeletingSubAccountRequest;
16
use WBW\Library\SMSMode\Model\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 AbstractResponseEvent {
25
26
    /**
27
     * Deleting sub-account.
28
     *
29
     * @var DeletingSubAccountInterface
30
     */
31
    private $deletingSubAccount;
32
33
    /**
34
     * Constructor.
35
     *
36
     * @param DeletingSubAccountInterface $deletingSubAccount The deleting sub-account.
37
     */
38
    public function __construct(DeletingSubAccountInterface $deletingSubAccount) {
39
        parent::__construct(SMSModeEvents::DELETING_SUB_ACCOUNT);
40
        $this->setDeletingSubAccount($deletingSubAccount);
41
    }
42
43
    /**
44
     * Get the deleting sub-account.
45
     *
46
     * @return DeletingSubAccountInterface Returns the deleting sub-account.
47
     */
48
    public function getDeletingSubAccount() {
49
        return $this->deletingSubAccount;
50
    }
51
52
    /**
53
     * Get the deleting sub-account request.
54
     *
55
     * @return DeletingSubAccountRequest Returns the deleting sub-account request.
56
     */
57
    public function getRequest() {
58
        return parent::getRequest();
59
    }
60
61
    /**
62
     * Get the deleting sub-account response.
63
     *
64
     * @return DeletingSubAccountResponse Returns the deleting sub-account response.
65
     */
66
    public function getResponse() {
67
        return parent::getResponse();
68
    }
69
70
    /**
71
     * Set the deleting sub-account.
72
     *
73
     * @param DeletingSubAccountInterface $deletingSubAccount The deleting sub-account.
74
     * @return DeletingSubAccountEvent Returns this deleting sub-account event.
75
     */
76
    protected function setDeletingSubAccount(DeletingSubAccountInterface $deletingSubAccount) {
77
        $this->deletingSubAccount = $deletingSubAccount;
78
        return $this;
79
    }
80
}
81