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