Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
84 | private function setNames(string $name) |
||
85 | { |
||
86 | if (class_exists($name) || interface_exists($name)) { |
||
87 | $reflection = new \ReflectionClass($name); |
||
88 | $this->shortName = $reflection->getShortName(); |
||
89 | $this->namespace = $reflection->getNamespaceName(); |
||
90 | } else { |
||
91 | $components = explode('\\', $name); |
||
92 | |||
93 | $this->shortName = array_pop($components); |
||
94 | $this->namespace = implode('\\', $components); |
||
95 | } |
||
96 | } |
||
97 | } |
||
98 |