PHP Class PhpBench\Benchmark\Metadata\AnnotationReader

Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method 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

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

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 method

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

getMethodAnnotations() public method

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