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