1 | <?php |
||
10 | abstract class TypeReflector |
||
11 | { |
||
12 | /** |
||
13 | * @var string pattern for parsing an argument type from a ReflectionParameter string |
||
14 | */ |
||
15 | const ARG_PATTERN = '/(?:\<required\>|\<optional\>)\\s+([\\w\\\\]+)/'; |
||
16 | |||
17 | /** |
||
18 | * @param ReflectionParameter $param |
||
19 | * |
||
20 | * @return string|null fully-qualified parameter type-name (or NULL, if no type-hint was found) |
||
21 | */ |
||
22 | 1 | public static function getTypeName(ReflectionParameter $param) |
|
30 | } |
||
31 |