| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class SetStreamConverter implements MiddlewareInterface |
||
| 14 | { |
||
| 15 | private string $converter; |
||
| 16 | private array $params = []; |
||
| 17 | /** Replace existing format */ |
||
| 18 | private bool $force; |
||
| 19 | |||
| 20 | public function __construct(string $converter, array $params = [], bool $force = false) |
||
| 21 | { |
||
| 22 | $this->converter = $converter; |
||
| 23 | $this->params = $params; |
||
| 24 | $this->force = $force; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 37 | } |
||
| 38 | } |
||
| 39 |