PHP 클래스 PhpBench\Benchmark\Metadata\BenchmarkMetadata

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

공개 메소드들

메소드 설명
__construct ( mixed $path, mixed $class )
filterSubjectGroups ( array $groups ) Remove all the subjects which are not contained in the given list of groups.
filterSubjectNames ( array $filters ) Remove all subjects whose name is not in the given list.
getAfterClassMethods ( ) Return any methods that should be called after the benchmark class is executed.
getBeforeClassMethods ( ) Return any methods that should be called before the benchmark class is executed.
getClass ( ) : string Return the benchmark class.
getIterator ( )
getOrCreateSubject ( string $name ) : SubjectMetadata Get or create a new SubjectMetadata instance with the given name.
getPath ( ) : string Get the file path of this benchmark.
getSubjects ( ) : SubjectMetadata[] Get the subject metadata instances for this benchmark metadata.
hasSubjects ( ) : boolean Return true if there are subjects in this benchmark metadata, false if not.
setAfterClassMethods ( array $afterClassMethods ) Set any methods that should be called after the benchmark class is executed.
setBeforeClassMethods ( array $beforeClassMethods ) Set any methods that should be called before the benchmark class is executed.

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $path, mixed $class )
$path mixed
$class mixed

filterSubjectGroups() 공개 메소드

Remove all the subjects which are not contained in the given list of groups.
public filterSubjectGroups ( array $groups )
$groups array

filterSubjectNames() 공개 메소드

Remove all subjects whose name is not in the given list.
public filterSubjectNames ( array $filters )
$filters array

getAfterClassMethods() 공개 메소드

Return any methods that should be called after the benchmark class is executed.

getBeforeClassMethods() 공개 메소드

Return any methods that should be called before the benchmark class is executed.

getClass() 공개 메소드

Return the benchmark class.
public getClass ( ) : string
리턴 string

getIterator() 공개 메소드

public getIterator ( )

getOrCreateSubject() 공개 메소드

Get or create a new SubjectMetadata instance with the given name.
public getOrCreateSubject ( string $name ) : SubjectMetadata
$name string
리턴 SubjectMetadata

getPath() 공개 메소드

Get the file path of this benchmark.
public getPath ( ) : string
리턴 string

getSubjects() 공개 메소드

Get the subject metadata instances for this benchmark metadata.
public getSubjects ( ) : SubjectMetadata[]
리턴 SubjectMetadata[]

hasSubjects() 공개 메소드

Return true if there are subjects in this benchmark metadata, false if not.
public hasSubjects ( ) : boolean
리턴 boolean

setAfterClassMethods() 공개 메소드

Set any methods that should be called after the benchmark class is executed.
public setAfterClassMethods ( array $afterClassMethods )
$afterClassMethods array

setBeforeClassMethods() 공개 메소드

Set any methods that should be called before the benchmark class is executed.
public setBeforeClassMethods ( array $beforeClassMethods )
$beforeClassMethods array