Completed
Push — master ( 201e9c...877b57 )
by Artem
11:08
created

CallbackEvent::getCallbackRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of the FreshSinchBundle
4
 *
5
 * (c) Artem Genvald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Fresh\SinchBundle\Event;
12
13
use AppBundle\Entity\Offer\Offer;
14
use Fresh\SinchBundle\Model\CallbackRequest;
15
use Symfony\Component\EventDispatcher\Event;
16
17
/**
18
 * CallbackEvent.
19
 *
20
 * @author Artem Genvald <[email protected]>
21
 */
22
class CallbackEvent extends Event
23
{
24
    /**
25
     * @var CallbackRequest $callbackRequest Callback request
26
     */
27
    private $callbackRequest;
28
29
    /**
30
     * Constructor.
31
     *
32
     * @param Offer $callbackRequest Callback request
33
     */
34
    public function __construct(CallbackRequest $callbackRequest)
35
    {
36
        $this->callbackRequest = $callbackRequest;
37
    }
38
39
    /**
40
     * Get callback request.
41
     *
42
     * @return CallbackRequest
43
     */
44
    public function getCallbackRequest()
45
    {
46
        return $this->callbackRequest;
47
    }
48
}
49