PHP Class Nette\DI\PhpReflection

Afficher le fichier Open project: nette/di Class Usage Examples

Méthodes publiques

Méthode 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.

Private Methods

Méthode Description
fetch ( &$tokens, $take )

Method Details

expandClassName() public static méthode

Expands class name into full name.
public static expandClassName ( $name, ReflectionClass $rc ) : string
$rc ReflectionClass
Résultat string full name

getClassTree() public static méthode

Returns class and all its descendants.
public static getClassTree ( ReflectionClass $class ) : string[]
$class ReflectionClass
Résultat string[]

getDeclaringClass() public static méthode

Returns declaring class or trait.
public static getDeclaringClass ( ReflectionProperty $prop ) : ReflectionClass
$prop ReflectionProperty
Résultat ReflectionClass

getParameterType() public static méthode

public static getParameterType ( ReflectionParameter $param ) : string | null
$param ReflectionParameter
Résultat string | null

getReturnType() public static méthode

public static getReturnType ( ReflectionFunctionAbstract $func ) : string | null
$func ReflectionFunctionAbstract
Résultat string | null

getUseStatements() public static méthode

public static getUseStatements ( ReflectionClass $class ) : array
$class ReflectionClass
Résultat array of [alias => class]

isBuiltinType() public static méthode

public static isBuiltinType ( $type ) : boolean
Résultat boolean

parseAnnotation() public static méthode

Returns an annotation value.
public static parseAnnotation ( Reflector $ref, $name ) : string | null
$ref Reflector
Résultat string | null

parseUseStatements() public static méthode

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