| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class SoapActionMiddleware implements MiddlewareInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | */ |
||
| 20 | 12 | public function process(RequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 21 | { |
||
| 22 | 12 | return $handler->handle($this->withSoapHeader($request)); |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param RequestInterface $request |
||
| 27 | * |
||
| 28 | * @return RequestInterface |
||
| 29 | * @throws RequestException |
||
| 30 | */ |
||
| 31 | 12 | private function withSoapHeader(RequestInterface $request): RequestInterface |
|
| 49 | } |
||
| 50 | } |