| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public static function getPropertyTypes(\ReflectionProperty $property) |
||
| 49 | { |
||
| 50 | $doc = $property->getDocComment(); |
||
| 51 | preg_match('/@var\s([\w\\\|\[\]]+)/', $doc, $matches); |
||
| 52 | $types = []; |
||
| 53 | if (isset($matches[1])) { |
||
| 54 | $types = explode('|', $matches[1]); |
||
| 55 | } |
||
| 56 | |||
| 57 | return $types; |
||
| 58 | } |
||
| 59 | } |