PHP Класс PhpBench\Benchmark\Metadata\BenchmarkMetadata

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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