PHP Class PhpBench\Benchmark\Metadata\Driver\AnnotationDriver

Inheritance: implements PhpBench\Benchmark\Metadata\DriverInterface
Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
__construct ( Reflector $reflector, $subjectPattern = '^bench', AnnotationReader $reader = null )
getMetadataForHierarchy ( ReflectionHierarchy $hierarchy )
processBenchmark ( BenchmarkMetadata $benchmark, $annotation )

Private Methods

Method Description
buildBenchmark ( BenchmarkMetadata $benchmark, ReflectionHierarchy $hierarchy )
buildSubject ( SubjectMetadata $subject, $annotations )
processSubject ( SubjectMetadata $subject, $annotation )
resolveValue ( AbstractArrayAnnotation $annotation, array $currentValues, array $annotationValues )

Method Details

__construct() public method

public __construct ( Reflector $reflector, $subjectPattern = '^bench', AnnotationReader $reader = null )
$reflector PhpBench\Benchmark\Remote\Reflector
$reader PhpBench\Benchmark\Metadata\AnnotationReader

getMetadataForHierarchy() public method

public getMetadataForHierarchy ( ReflectionHierarchy $hierarchy )
$hierarchy PhpBench\Benchmark\Remote\ReflectionHierarchy

processBenchmark() public method

public processBenchmark ( BenchmarkMetadata $benchmark, $annotation )
$benchmark PhpBench\Benchmark\Metadata\BenchmarkMetadata