Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
31 | { |
||
32 | $creationOptions = $this->getCreationOptions(); |
||
33 | |||
34 | $separator = '_'; |
||
35 | if (array_key_exists('separator', $creationOptions)) { |
||
36 | $separator = (string)$creationOptions['separator']; |
||
37 | } |
||
38 | |||
39 | $lowerCase = true; |
||
40 | if (array_key_exists('lowerCase', $creationOptions)) { |
||
41 | $lowerCase = (boolean)$creationOptions['lowerCase']; |
||
42 | } |
||
43 | |||
44 | return new CamelCaseNamingStrategy($separator, $lowerCase); |
||
45 | } |
||
46 | } |
||
47 |