| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 20 | 10 | protected function getWrappedEntityManager(): EntityManagerInterface  | 
            |
| 21 |     { | 
            ||
| 22 | 10 |         if (! $this->wrapped->isOpen()) { | 
            |
| 23 | 5 | $this->wrapped = ($this->emFactory)(  | 
            |
| 24 | 5 | $this->wrapped->getConnection(),  | 
            |
| 25 | 5 | $this->wrapped->getConfiguration(),  | 
            |
| 26 | 5 | $this->wrapped->getEventManager()  | 
            |
| 27 | );  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | 10 | return $this->wrapped;  | 
            |
| 31 | }  | 
            ||
| 58 |