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

TransferringCreditsEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 57
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRequest() 0 3 1
A getResponse() 0 3 1
A getTransferringCredits() 0 3 1
A setTransferringCredits() 0 4 1
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\TransferringCreditsInterface;
15
use WBW\Library\SMSMode\Model\TransferringCreditsRequest;
16
use WBW\Library\SMSMode\Model\TransferringCreditsResponse;
17
18
/**
19
 * Transferring credits event
20
 *
21
 * @author webeweb <https://github.com/webeweb/>
22
 * @package WBW\Bundle\SMSModeBundle\Event
23
 */
24
class TransferringCreditsEvent extends AbstractResponseEvent {
25
26
    /**
27
     * Transferring credits.
28
     *
29
     * @var TransferringCreditsInterface
30
     */
31
    private $transferringCredits;
32
33
    /**
34
     * Constructor.
35
     *
36
     * @param TransferringCreditsInterface $transferringCredits The transferring credits.
37
     */
38
    public function __construct(TransferringCreditsInterface $transferringCredits) {
39
        parent::__construct(SMSModeEvents::TRANSFERRING_CREDITS);
40
        $this->setTransferringCredits($transferringCredits);
41
    }
42
43
    /**
44
     * Get the transferring credits request.
45
     *
46
     * @return TransferringCreditsRequest Returns the transferring credits request.
47
     */
48
    public function getRequest() {
49
        return parent::getRequest();
50
    }
51
52
    /**
53
     * Get the transferring credits response.
54
     *
55
     * @return TransferringCreditsResponse Returns the transferring credits response.
56
     */
57
    public function getResponse() {
58
        return parent::getResponse();
59
    }
60
61
    /**
62
     * Get the transferring credits.
63
     *
64
     * @return TransferringCreditsInterface Returns the transferring credits.
65
     */
66
    public function getTransferringCredits() {
67
        return $this->transferringCredits;
68
    }
69
70
    /**
71
     * Set the transferring credits.
72
     *
73
     * @param TransferringCreditsInterface $transferringCredits The transferring credits.
74
     * @return TransferringCreditsEvent Returns this transferring credits event.
75
     */
76
    protected function setTransferringCredits(TransferringCreditsInterface $transferringCredits) {
77
        $this->transferringCredits = $transferringCredits;
78
        return $this;
79
    }
80
}
81