| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class MapBased extends EventsHandler |
||
| 14 | { |
||
| 15 | /** @var Converter[] */ |
||
| 16 | private $conversionMap; |
||
| 17 | |||
| 18 | 6 | public function __construct(OutboxMappedSuperclass $outboxMappedSuperclass) |
|
| 19 | { |
||
| 20 | 6 | $this->outboxMappedSuperclass = $outboxMappedSuperclass; |
|
| 21 | 6 | } |
|
| 22 | |||
| 23 | 6 | public function addConverter(string $domainEventClass, Converter $converter) : void |
|
| 32 | 5 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return OutboxEntry[] |
||
| 36 | * |
||
| 37 | * @var DomainEvent[] $domainEvents |
||
| 38 | */ |
||
| 39 | 5 | public function convert(DomainEvent ...$domainEvents) : array |
|
| 56 |