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