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

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