PHP Class PhpBench\Benchmark\Metadata\AnnotationReader

Afficher le fichier Open project: dantleech/phpbench

Méthodes publiques

Méthode Description
__construct ( boolean $importUse = false ) Set import use to true in order to use imported annotations, otherwise import the PHPBench annotations directly.
getClassAnnotations ( ReflectionClass $class ) Return annotations for the given class.
getMethodAnnotations ( ReflectionMethod $method )

Private Methods

Méthode Description
collectImports ( ReflectionClass $class )
getPhpBenchImports ( )
getUseImports ( ReflectionClass $class )
parse ( $input, $context = '' ) Delegates to the doctrine DocParser but catches annotation not found errors and throws something useful.

Method Details

__construct() public méthode

Set import use to true in order to use imported annotations, otherwise import the PHPBench annotations directly.
public __construct ( boolean $importUse = false )
$importUse boolean

getClassAnnotations() public méthode

Return annotations for the given class.
public getClassAnnotations ( ReflectionClass $class )
$class PhpBench\Benchmark\Remote\ReflectionClass

getMethodAnnotations() public méthode

public getMethodAnnotations ( ReflectionMethod $method )
$method PhpBench\Benchmark\Remote\ReflectionMethod