PHP Class PhpBench\Benchmark\Metadata\BenchmarkMetadata

显示文件 Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

filterSubjectGroups() public method

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

filterSubjectNames() public method

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

getAfterClassMethods() public method

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

getBeforeClassMethods() public method

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

getClass() public method

Return the benchmark class.
public getClass ( ) : string
return string

getIterator() public method

public getIterator ( )

getOrCreateSubject() public method

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

getPath() public method

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

getSubjects() public method

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

hasSubjects() public method

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

setAfterClassMethods() public method

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

setBeforeClassMethods() public method

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