| 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 | 38 | protected function __construct($response = null) |
|
| 10 | { |
||
| 11 | 38 | $this->response = $response; |
|
| 12 | } |
||
| 13 | |||
| 14 | 38 | public static function newResponse($response = null) |
|
| 15 | { |
||
| 16 | 38 | $response = new static($response); |
|
| 17 | 38 | return $response; |
|
| 18 | } |
||
| 19 | |||
| 20 | 38 | public function getResponse() |
|
| 23 | } |
||
| 24 | |||
| 25 | 38 | public function setResponse($response) |
|
| 32 |