| Total Complexity | 8 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class SetFormat implements MiddlewareInterface |
||
| 14 | { |
||
| 15 | private string $format; |
||
| 16 | private ?array $params; |
||
| 17 | /** Replace existing format */ |
||
| 18 | private bool $force; |
||
| 19 | |||
| 20 | 6 | public function __construct(string $format, ?array $params = [], bool $force = false) |
|
| 25 | 6 | } |
|
| 26 | |||
| 27 | 6 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 44 |