Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | final class StubMapBased extends EventsHandler |
||
17 | { |
||
18 | /** @var Converter[] */ |
||
19 | private $conversionMap; |
||
20 | |||
21 | /** |
||
22 | * @param Converter[] $conversionMap |
||
23 | */ |
||
24 | public function __construct(OutboxMappedSuperclass $outboxMappedSuperclass, array $conversionMap) |
||
25 | { |
||
26 | $this->outboxMappedSuperclass = $outboxMappedSuperclass; |
||
27 | $this->conversionMap = $conversionMap; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return DomainEvent[] array |
||
32 | */ |
||
33 | public function getDomainEvents(OnFlushEventArgs $eventArgs) : array |
||
34 | { |
||
35 | return parent::getDomainEvents($eventArgs); |
||
36 | } |
||
37 | |||
38 | public function persist(EntityManagerInterface $entityManager, OutboxEntry ...$outboxEntries) : void |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return OutboxEntry[] |
||
45 | */ |
||
46 | public function convert(DomainEvent ...$domainEvents) : array |
||
63 |