| Total Complexity | 2 | 
| Total Lines | 21 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | class CloseDbConnectionMiddleware implements MiddlewareInterface  | 
            ||
| 13 | { | 
            ||
| 14 | /** @var EntityManagerInterface */  | 
            ||
| 15 | private $em;  | 
            ||
| 16 | |||
| 17 | 1 | public function __construct(EntityManagerInterface $em)  | 
            |
| 20 | }  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Process an incoming server request and return a response, optionally delegating  | 
            ||
| 24 | * response creation to a handler.  | 
            ||
| 25 | */  | 
            ||
| 26 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface  | 
            |
| 35 |