| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public static function getPhpDocInterfaceProperty($variable, $class = 'carono\exchange1c\ExchangeModule') |
||
| 36 | { |
||
| 37 | $reflection = new \ReflectionClass($class); |
||
| 38 | $property = $reflection->getProperty($variable); |
||
| 39 | if (preg_match('#@var\s+([\w\\\]+)#iu', $property->getDocComment(), $match)) { |
||
| 40 | return $match[1]; |
||
| 41 | } else { |
||
| 42 | return null; |
||
| 43 | } |
||
| 45 | } |