PHP Class PhpBench\Model\Suite

This is the base of the object graph created by the Runner.
Inheritance: implements IteratorAggregate
Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $contextName, DateTime $date, string $configPath = null, array $benchmarks = [], array $envInformations = [], $uuid = null ) __construct.
addEnvInformation ( Information $information )
createBenchmark ( string $class ) : Benchmark Create and add a benchmark.
generateUuid ( ) Generate a universally unique identifier.
getBenchmarks ( )
getConfigPath ( )
getContextName ( )
getDate ( )
getEnvInformations ( ) : Information[]
getErrorStacks ( )
getIterations ( )
getIterator ( )
getSubjects ( )
getSummary ( )
getUuid ( ) : mixed The uuid uniquely identifies this suite.
getVariants ( )
setEnvInformations ( array $envInformations )

Method Details

__construct() public méthode

__construct.
public __construct ( string $contextName, DateTime $date, string $configPath = null, array $benchmarks = [], array $envInformations = [], $uuid = null )
$contextName string
$date DateTime
$configPath string
$benchmarks array
$envInformations array

addEnvInformation() public méthode

public addEnvInformation ( Information $information )
$information PhpBench\Environment\Information

createBenchmark() public méthode

Create and add a benchmark.
public createBenchmark ( string $class ) : Benchmark
$class string
Résultat Benchmark

generateUuid() public méthode

The first 7 characters are the year month and in hex, the rest is a truncated sha1 string encoding the environmental information, the microtime and the configuration path.
public generateUuid ( )

getBenchmarks() public méthode

public getBenchmarks ( )

getConfigPath() public méthode

public getConfigPath ( )

getContextName() public méthode

public getContextName ( )

getDate() public méthode

public getDate ( )

getEnvInformations() public méthode

public getEnvInformations ( ) : Information[]
Résultat PhpBench\Environment\Information[]

getErrorStacks() public méthode

public getErrorStacks ( )

getIterations() public méthode

public getIterations ( )

getIterator() public méthode

public getIterator ( )

getSubjects() public méthode

public getSubjects ( )

getSummary() public méthode

public getSummary ( )

getUuid() public méthode

The uuid is determined by the storage driver, and may be empty only when dynamically generating reports on-the-fly.
public getUuid ( ) : mixed
Résultat mixed

getVariants() public méthode

public getVariants ( )

setEnvInformations() public méthode

public setEnvInformations ( array $envInformations )
$envInformations array