Method | Description | |
---|---|---|
expandClassName ( $name, ReflectionClass $rc ) : string | Expands class name into full name. | |
getClassTree ( ReflectionClass $class ) : string[] | Returns class and all its descendants. | |
getDeclaringClass ( ReflectionProperty $prop ) : ReflectionClass | Returns declaring class or trait. | |
getParameterType ( ReflectionParameter $param ) : string | null | ||
getReturnType ( ReflectionFunctionAbstract $func ) : string | null | ||
getUseStatements ( ReflectionClass $class ) : array | ||
isBuiltinType ( $type ) : boolean | ||
parseAnnotation ( Reflector $ref, $name ) : string | null | Returns an annotation value. | |
parseUseStatements ( $code, $forClass = NULL ) : array | Parses PHP code. |
Method | Description | |
---|---|---|
fetch ( &$tokens, $take ) |
public static expandClassName ( $name, ReflectionClass $rc ) : string | ||
$rc | ReflectionClass | |
return | string | full name |
public static getClassTree ( ReflectionClass $class ) : string[] | ||
$class | ReflectionClass | |
return | string[] |
public static getDeclaringClass ( ReflectionProperty $prop ) : ReflectionClass | ||
$prop | ReflectionProperty | |
return | ReflectionClass |
public static getParameterType ( ReflectionParameter $param ) : string | null | ||
$param | ReflectionParameter | |
return | string | null |
public static getReturnType ( ReflectionFunctionAbstract $func ) : string | null | ||
$func | ReflectionFunctionAbstract | |
return | string | null |
public static getUseStatements ( ReflectionClass $class ) : array | ||
$class | ReflectionClass | |
return | array | of [alias => class] |
public static parseAnnotation ( Reflector $ref, $name ) : string | null | ||
$ref | Reflector | |
return | string | null |
public static parseUseStatements ( $code, $forClass = NULL ) : array | ||
return | array | of [class => [alias => class, ...]] |