PHP 클래스 Nette\Reflection\AnnotationsParser

저자: David Grudl
파일 보기 프로젝트 열기: nette/reflection 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$autoRefresh boolean
$inherited array
$useReflection boolean

공개 메소드들

메소드 설명
expandClassName ( $name, ReflectionClass $reflector ) : string Expands class name into FQN.
getAll ( Reflector $r ) : array Returns annotations.
getCacheStorage ( ) : Nette\Caching\IStorage
parsePhp ( $code ) : array Parses PHP file.
setCacheStorage ( Nette\Caching\IStorage $storage ) : void

비공개 메소드들

메소드 설명
fetch ( &$tokens, $take )
getCache ( ) : Cache
parseComment ( $comment ) : array Parses phpDoc comment.

메소드 상세

expandClassName() 공개 정적인 메소드

Expands class name into FQN.
public static expandClassName ( $name, ReflectionClass $reflector ) : string
$reflector ReflectionClass
리턴 string fully qualified class name

getAll() 공개 정적인 메소드

Returns annotations.
public static getAll ( Reflector $r ) : array
$r Reflector
리턴 array

getCacheStorage() 공개 정적인 메소드

public static getCacheStorage ( ) : Nette\Caching\IStorage
리턴 Nette\Caching\IStorage

parsePhp() 공개 정적인 메소드

Parses PHP file.
public static parsePhp ( $code ) : array
리턴 array [class => [prop => comment (or 'use' => [alias => class])]

setCacheStorage() 공개 정적인 메소드

public static setCacheStorage ( Nette\Caching\IStorage $storage ) : void
$storage Nette\Caching\IStorage
리턴 void

프로퍼티 상세

$autoRefresh 공개적으로 정적으로 프로퍼티

public static bool $autoRefresh
리턴 boolean

$inherited 공개적으로 정적으로 프로퍼티

public static array $inherited
리턴 array

$useReflection 공개적으로 정적으로 프로퍼티

public static bool $useReflection
리턴 boolean