PHP Class PhpBench\Benchmark\Metadata\BenchmarkMetadata

Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

filterSubjectGroups() public méthode

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

filterSubjectNames() public méthode

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

getAfterClassMethods() public méthode

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

getBeforeClassMethods() public méthode

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

getClass() public méthode

Return the benchmark class.
public getClass ( ) : string
Résultat string

getIterator() public méthode

public getIterator ( )

getOrCreateSubject() public méthode

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

getPath() public méthode

Get the file path of this benchmark.
public getPath ( ) : string
Résultat string

getSubjects() public méthode

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

hasSubjects() public méthode

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

setAfterClassMethods() public méthode

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

setBeforeClassMethods() public méthode

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