| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function __construct(OutboxMappedSuperclass $outboxMappedSuperclass, array $conversionMap) |
||
| 21 | { |
||
| 22 | $this->outboxMappedSuperclass = $outboxMappedSuperclass; |
||
| 23 | |||
| 24 | foreach ($conversionMap as $converter) { |
||
| 25 | if (! $converter instanceof Converter) { |
||
| 26 | throw new InvalidArgumentException( |
||
| 27 | sprintf('%s class must implements Converter interface', get_class($converter)) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->conversionMap = $conversionMap; |
||
| 33 | } |
||
| 57 |