| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 2 | private static function getEventAwareEntities(UnitOfWork $unitOfWork) : array |
|
| 47 | { |
||
| 48 | 2 | $entities = array_merge( |
|
| 49 | 2 | $unitOfWork->getScheduledEntityInsertions(), |
|
| 50 | 2 | $unitOfWork->getScheduledEntityUpdates(), |
|
| 51 | 2 | $unitOfWork->getScheduledEntityDeletions() |
|
| 52 | ); |
||
| 53 | |||
| 54 | return array_filter($entities, static function ($entity) { |
||
| 55 | 2 | return $entity instanceof EventAware; |
|
| 56 | 2 | }); |
|
| 59 |