| Conditions | 2 | 
| Paths | 4 | 
| Total Lines | 21 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 34 | #[Override]  | 
            ||
| 35 | public function invoke(AbstractRequest $request): ResourceObject  | 
            ||
| 36 |     { | 
            ||
| 37 | $openContext = $this->factory->createOpenContext($request);  | 
            ||
| 38 | |||
| 39 | $openId = $this->logger->open($openContext);  | 
            ||
| 40 | |||
| 41 |         try { | 
            ||
| 42 | $result = $this->invoker->invoke($request);  | 
            ||
| 43 | |||
| 44 | $closeContext = $this->factory->createCompleteContext($result, $openContext);  | 
            ||
| 45 | |||
| 46 | $this->logger->close($closeContext, $openId);  | 
            ||
| 47 | |||
| 48 | return $result;  | 
            ||
| 49 |         } catch (Throwable $e) { | 
            ||
| 50 | $errorContext = $this->factory->createErrorContext($e);  | 
            ||
| 51 | |||
| 52 | $this->logger->close($errorContext, $openId);  | 
            ||
| 53 | |||
| 54 | throw $e;  | 
            ||
| 55 | }  | 
            ||
| 58 |