| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 2 | public function getTransferStrategy(TransferTypeEnum $type): TransferStrategyInterface |
|
| 18 | { |
||
| 19 | 2 | if (!array_key_exists($type->value, $this->transferStrategies)) { |
|
| 20 | 1 | throw new RuntimeException(sprintf('transfer strategy with typeValue %d does not exist', $type->value)); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | return $this->transferStrategies[$type->value]; |
|
| 24 | } |
||
| 26 |