PHP 클래스 Nette\DI\PhpReflection

파일 보기 프로젝트 열기: nette/di 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
fetch ( &$tokens, $take )

메소드 상세

expandClassName() 공개 정적인 메소드

Expands class name into full name.
public static expandClassName ( $name, ReflectionClass $rc ) : string
$rc ReflectionClass
리턴 string full name

getClassTree() 공개 정적인 메소드

Returns class and all its descendants.
public static getClassTree ( ReflectionClass $class ) : string[]
$class ReflectionClass
리턴 string[]

getDeclaringClass() 공개 정적인 메소드

Returns declaring class or trait.
public static getDeclaringClass ( ReflectionProperty $prop ) : ReflectionClass
$prop ReflectionProperty
리턴 ReflectionClass

getParameterType() 공개 정적인 메소드

public static getParameterType ( ReflectionParameter $param ) : string | null
$param ReflectionParameter
리턴 string | null

getReturnType() 공개 정적인 메소드

public static getReturnType ( ReflectionFunctionAbstract $func ) : string | null
$func ReflectionFunctionAbstract
리턴 string | null

getUseStatements() 공개 정적인 메소드

public static getUseStatements ( ReflectionClass $class ) : array
$class ReflectionClass
리턴 array of [alias => class]

isBuiltinType() 공개 정적인 메소드

public static isBuiltinType ( $type ) : boolean
리턴 boolean

parseAnnotation() 공개 정적인 메소드

Returns an annotation value.
public static parseAnnotation ( Reflector $ref, $name ) : string | null
$ref Reflector
리턴 string | null

parseUseStatements() 공개 정적인 메소드

Parses PHP code.
public static parseUseStatements ( $code, $forClass = NULL ) : array
리턴 array of [class => [alias => class, ...]]