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

GetExceptionResponseEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10

2 Methods

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