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

CallbackEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCallbackRequest() 0 4 1
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