Passed
Push — master ( 093846...a50b30 )
by 世昌
05:11 queued 10s
created

RequestDumpCatcher::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
namespace suda\application\debug;
3
4
use suda\framework\Request;
5
use suda\framework\Response;
6
use suda\application\Application;
7
8
/**
9
 * Class RequestDumper
10
 * @package suda\application
11
 */
12
class RequestDumpCatcher extends ExceptionCatcher
13
{
14
    /**
15
     * @var Response
16
     */
17
    protected $response;
18
19
20
    public function __construct(Application $application, Request $request, Response $response)
21
    {
22
        $context = [];
23
        $context['request'] = $request;
24
        $context['response'] = $response;
25
        parent::__construct($application, $context);
26
        $this->response = $response;
27
    }
28
}
29