| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 9 | public static function config(PlatformConfigInterface $platform) |
|
| 26 | { |
||
| 27 | 9 | $platformName = $platform->getPlatformName(); |
|
| 28 | 9 | if (self::hasConfig($platformName) === false) { |
|
| 29 | 1 | throw new InputException("Could not find a platform config for '$platformName'"); |
|
| 30 | } |
||
| 31 | |||
| 32 | /** @var SoapConfig $soapConfig */ |
||
| 33 | 8 | $soapConfig = sprintf(self::FQCN, ucfirst($platformName)); |
|
| 34 | |||
| 35 | // return instance of config class with settings in place |
||
| 36 | 8 | return $soapConfig::configure($platform); |
|
| 37 | } |
||
| 38 | |||
| 53 |