Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | 2 | private static function getEventAwareEntities(UnitOfWork $unitOfWork): array |
|
45 | { |
||
46 | 2 | $entities = array_merge( |
|
47 | 2 | $unitOfWork->getScheduledEntityInsertions(), |
|
48 | 2 | $unitOfWork->getScheduledEntityUpdates(), |
|
49 | 2 | $unitOfWork->getScheduledEntityDeletions() |
|
50 | ); |
||
51 | |||
52 | return array_filter($entities, static fn ($entity): bool => $entity instanceof EventAware); |
||
53 | 2 | } |
|
55 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.