Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 6 | public function addConverter(string $domainEventClass, Converter $converter): void |
|
19 | { |
||
20 | 6 | if (! class_exists($domainEventClass)) { |
|
21 | 1 | throw new InvalidArgumentException( |
|
22 | 1 | sprintf('Domain Event \"%s\" does not exist', $domainEventClass) |
|
23 | ); |
||
24 | } |
||
25 | |||
26 | 5 | $this->conversionMap[$domainEventClass] = $converter; |
|
27 | 5 | } |
|
49 |