| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 25 | 15 | public function pull(EntityManagerInterface $em)  | 
            |
| 26 |     { | 
            ||
| 27 | 15 | $uow = $em->getUnitOfWork();  | 
            |
| 28 | 15 | $events = [];  | 
            |
| 29 | |||
| 30 | 15 | $events = array_merge($events, $this->pullFromEntities($uow->getScheduledEntityDeletions()));  | 
            |
| 31 | 15 | $events = array_merge($events, $this->pullFromEntities($uow->getScheduledEntityInsertions()));  | 
            |
| 32 | 15 | $events = array_merge($events, $this->pullFromEntities($uow->getScheduledEntityUpdates()));  | 
            |
| 33 | |||
| 34 | // other entities  | 
            ||
| 35 | 15 |         foreach ($uow->getIdentityMap() as $entities) { | 
            |
| 36 | 8 | $events = array_merge($events, $this->pullFromEntities($entities));  | 
            |
| 37 | }  | 
            ||
| 38 | |||
| 39 | 15 | return $events;  | 
            |
| 40 | }  | 
            ||
| 41 | |||
| 61 |