PHP Class Nette\Reflection\AnnotationsParser

Author: David Grudl
显示文件 Open project: nette/reflection Class Usage Examples

Public Properties

Property Type Description
$autoRefresh boolean
$inherited array
$useReflection boolean

Public Methods

Method Description
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

Private Methods

Method Description
fetch ( &$tokens, $take )
getCache ( ) : Cache
parseComment ( $comment ) : array Parses phpDoc comment.

Method Details

expandClassName() public static method

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

getAll() public static method

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

getCacheStorage() public static method

public static getCacheStorage ( ) : Nette\Caching\IStorage
return Nette\Caching\IStorage

parsePhp() public static method

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

setCacheStorage() public static method

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

Property Details

$autoRefresh public_oe static_oe property

public static bool $autoRefresh
return boolean

$inherited public_oe static_oe property

public static array $inherited
return array

$useReflection public_oe static_oe property

public static bool $useReflection
return boolean