Completed
Push — master ( 055f1b...f72a4b )
by Pavel
52s
created

GetExceptionResponseEvent::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: batanov.pavel
5
 * Date: 11.02.2016
6
 * Time: 18:57
7
 */
8
9
namespace Bankiru\Api\Rpc\Event;
10
11
use Bankiru\Api\Rpc\Http\RequestInterface;
12
use Bankiru\Api\Rpc\RpcEvent;
13
use ScayTrase\Api\Rpc\RpcResponseInterface;
14
use Symfony\Component\HttpKernel\HttpKernelInterface;
15
16
class GetExceptionResponseEvent extends RpcResponseEvent
17
{
18
    /** @var \Exception */
19
    private $exception;
20
21 4
    public function __construct(HttpKernelInterface $kernel, RequestInterface $request, \Exception $exception)
22
    {
23 4
        parent::__construct($kernel, $request);
24 4
        $this->exception = $exception;
25 4
    }
26
27
    /** @return \Exception */
28 4
    public function getException()
29
    {
30 4
        return $this->exception;
31
    }
32
}
33