| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FixedResponseHandler extends AbstractHandler |
||
| 14 | { |
||
| 15 | protected $fixedResponse; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param ResponseInterface $response The fixed response. |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(ResponseInterface $response) |
|
| 21 | { |
||
| 22 | 1 | $this->fixedResponse = $response; |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | public static function wrap(ResponseInterface $response): RequestHandlerInterface |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | protected function main(): ResponseInterface |
|
| 35 |