Completed
Push — master ( 2861e0...f53090 )
by WEBEWEB
22:38 queued 10:22
created

SMSReplyCallbackEvent::getSMSReplyCallback()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\CoreBundle\Event\AbstractEvent;
15
use WBW\Library\SMSMode\Model\SMSReplyCallback;
16
17
/**
18
 * SMS reply callback event.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\SMSModeBundle\Event
22
 */
23
class SMSReplyCallbackEvent extends AbstractEvent {
24
25
    /**
26
     * SMS reply callback.
27
     *
28
     * @var SMSReplyCallback
29
     */
30
    private $smsReplyCallback;
31
32
    /**
33
     * Constructor.
34
     *
35
     * @param string $eventName The event name.
36
     * @param SMSReplyCallback $smsReplyCallback The SMS reply callback.
37
     */
38
    public function __construct($eventName, SMSReplyCallback $smsReplyCallback) {
39
        parent::__construct($eventName);
40
        $this->setSMSReplyCallback($smsReplyCallback);
41
    }
42
43
    /**
44
     * Get the SMS reply callback.
45
     *
46
     * @return SMSReplyCallback Returns the SMS reply callback.
47
     */
48
    public function getSMSReplyCallback() {
49
        return $this->smsReplyCallback;
50
    }
51
52
    /**
53
     * Set the SMS reply callback.
54
     *
55
     * @param SMSReplyCallback $smsReplyCallback The SMS reply callback.
56
     * @return SMSReplyCallbackEvent Returns this SMS reply callback event.
57
     */
58
    public function setSMSReplyCallback($smsReplyCallback) {
59
        $this->smsReplyCallback = $smsReplyCallback;
60
        return $this;
61
    }
62
}
63