Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function normalize($propertyName) : string |
||
30 | { |
||
31 | if (false === class_exists($propertyName)) { |
||
32 | throw new InvalidArgumentException('The given parameter is not a valid fully qualified class name'); |
||
33 | } |
||
34 | |||
35 | $reflectionClass = new \ReflectionClass($propertyName); |
||
36 | $className = $reflectionClass->getShortName(); |
||
37 | |||
38 | return $this->nameConverter->normalize($className); |
||
39 | } |
||
40 | |||
52 |