Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
21 | 4 | public function __construct(OutboxMappedSuperclass $outboxMappedSuperclass, array $conversionMap) |
|
22 | { |
||
23 | 4 | $this->outboxMappedSuperclass = $outboxMappedSuperclass; |
|
24 | |||
25 | 4 | foreach ($conversionMap as $domainEvent => $converter) { |
|
26 | 4 | if (! class_exists($domainEvent)) { |
|
27 | 1 | throw new InvalidArgumentException( |
|
28 | 4 | sprintf('Domain Event \"%s\" does not exist', $domainEvent) |
|
29 | ); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | 3 | $this->conversionMap = $conversionMap; |
|
34 | 3 | } |
|
58 |