Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class MiddlewareResponse |
||
6 | { |
||
7 | protected $response; |
||
8 | |||
9 | 30 | protected function __construct($response = null) |
|
10 | { |
||
11 | 30 | $this->response = $response; |
|
12 | } |
||
13 | |||
14 | 30 | public static function newResponse($response = null) |
|
15 | { |
||
16 | 30 | $response = new static($response); |
|
17 | 30 | return $response; |
|
18 | } |
||
19 | |||
20 | 30 | public function getResponse() |
|
23 | } |
||
24 | |||
25 | 30 | public function setResponse($response) |
|
32 |