PHP 클래스 PhpBench\Benchmark\Metadata\Factory

파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Reflector $reflector, PhpBench\Benchmark\Metadata\DriverInterface $driver )
getMetadataForFile ( string $file ) : Benchmark Return a Benchmark instance for the given file or NULL if the given file contains no classes, or the class in the given file is abstract.

비공개 메소드들

메소드 설명
validateBenchmark ( ReflectionHierarchy $hierarchy, BenchmarkMetadata $benchmark )
validateMethodExists ( $context, ReflectionHierarchy $benchmarkReflection, $method, $isStatic = false )
validateSubject ( ReflectionHierarchy $benchmarkReflection, SubjectMetadata $subject )

메소드 상세

__construct() 공개 메소드

public __construct ( Reflector $reflector, PhpBench\Benchmark\Metadata\DriverInterface $driver )
$reflector PhpBench\Benchmark\Remote\Reflector
$driver PhpBench\Benchmark\Metadata\DriverInterface

getMetadataForFile() 공개 메소드

Return a Benchmark instance for the given file or NULL if the given file contains no classes, or the class in the given file is abstract.
public getMetadataForFile ( string $file ) : Benchmark
$file string
리턴 Benchmark