PHP Класс PhpBench\Model\Subject

It represents the result rather than the details of how to create that result.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Benchmark $benchmark, string $name )
createVariant ( ParameterSet $parameterSet, integer $revolutions, integer $warmup, array $computedStats = [] ) : Variant. Create and add a new variant based on this subject.
getBenchmark ( ) : BenchmarkMetadata Return the (containing) benchmark for this subject.
getGroups ( )
getIndex ( )
getName ( ) : string Return the method name of this subject.
getOutputMode ( )
getOutputTimePrecision ( )
getOutputTimeUnit ( )
getRetryThreshold ( )
getSleep ( )
getVariants ( )
inGroups ( array $groups )
setGroups ( $groups )
setOutputMode ( $outputMode )
setOutputTimePrecision ( $outputTimePrecision )
setOutputTimeUnit ( $outputTimeUnit )
setRetryThreshold ( $retryThreshold )
setSleep ( $sleep )

Описание методов

__construct() публичный Метод

public __construct ( Benchmark $benchmark, string $name )
$benchmark Benchmark
$name string

createVariant() публичный Метод

Create and add a new variant based on this subject.
public createVariant ( ParameterSet $parameterSet, integer $revolutions, integer $warmup, array $computedStats = [] ) : Variant.
$parameterSet ParameterSet
$revolutions integer
$warmup integer
$computedStats array
Результат Variant.

getBenchmark() публичный Метод

Return the (containing) benchmark for this subject.
public getBenchmark ( ) : BenchmarkMetadata
Результат BenchmarkMetadata

getGroups() публичный Метод

public getGroups ( )

getIndex() публичный Метод

public getIndex ( )

getName() публичный Метод

Return the method name of this subject.
public getName ( ) : string
Результат string

getOutputMode() публичный Метод

public getOutputMode ( )

getOutputTimePrecision() публичный Метод

getOutputTimeUnit() публичный Метод

public getOutputTimeUnit ( )

getRetryThreshold() публичный Метод

public getRetryThreshold ( )

getSleep() публичный Метод

public getSleep ( )

getVariants() публичный Метод

public getVariants ( )

inGroups() публичный Метод

public inGroups ( array $groups )
$groups array

setGroups() публичный Метод

public setGroups ( $groups )

setOutputMode() публичный Метод

public setOutputMode ( $outputMode )

setOutputTimePrecision() публичный Метод

public setOutputTimePrecision ( $outputTimePrecision )

setOutputTimeUnit() публичный Метод

public setOutputTimeUnit ( $outputTimeUnit )

setRetryThreshold() публичный Метод

public setRetryThreshold ( $retryThreshold )

setSleep() публичный Метод

public setSleep ( $sleep )