| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class StaticReflectionService implements ReflectionService |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritDoc} |
||
| 18 | */ |
||
| 19 | 1 | public function getParentClasses($class) |
|
| 20 | { |
||
| 21 | 1 | return []; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | 1 | public function getClassShortName($className) |
|
| 28 | { |
||
| 29 | 1 | if (strpos($className, '\\') !== false) { |
|
| 30 | 1 | $className = substr($className, strrpos($className, '\\') + 1); |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | return $className; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | 1 | public function getClassNamespace($className) |
|
| 40 | { |
||
| 41 | 1 | $namespace = ''; |
|
| 42 | 1 | if (strpos($className, '\\') !== false) { |
|
| 43 | 1 | $namespace = strrev(substr(strrev($className), strpos(strrev($className), '\\') + 1)); |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | return $namespace; |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | 1 | public function getClass($class) |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritDoc} |
||
| 59 | */ |
||
| 60 | 1 | public function getAccessibleProperty($class, $property) |
|
| 61 | { |
||
| 62 | 1 | return null; |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritDoc} |
||
| 67 | */ |
||
| 68 | 1 | public function hasPublicMethod($class, $method) |
|
| 71 | } |
||
| 72 | } |
||
| 73 | |||
| 74 | class_exists(\Doctrine\Common\Persistence\Mapping\StaticReflectionService::class); |
||
| 75 |