| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class HtmlResponse implements ResponseInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var PsrResponse |
||
| 10 | */ |
||
| 11 | private $response; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param PsrResponse $response |
||
| 15 | */ |
||
| 16 | public function __construct(PsrResponse $response) |
||
| 17 | { |
||
| 18 | $this->response = $response; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return PsrResponse |
||
| 23 | */ |
||
| 24 | public function getHttpResponse() |
||
| 25 | { |
||
| 26 | return $this->response; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param null $item |
||
|
|
|||
| 31 | * @param null $default |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function get($item = null, $default = null) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function successful() |
||
| 47 |