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