| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function getNamingStrategyFromContainer(ServiceLocatorInterface $serviceLocator) |
||
| 36 | { |
||
| 37 | $creationOptions = $this->getCreationOptions(); |
||
| 38 | if (!array_key_exists('namingStrategy', $creationOptions)) { |
||
| 39 | $errMsg = 'Naming strategy not specified'; |
||
| 40 | throw new Exception\RuntimeException($errMsg); |
||
| 41 | } |
||
| 42 | |||
| 43 | $namingStrategy = $creationOptions['namingStrategy']; |
||
| 44 | |||
| 45 | return $serviceLocator->get($namingStrategy); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |