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