PHP 클래스 PhpBench\Model\Suite

This is the base of the object graph created by the Runner.
상속: implements IteratorAggregate
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

__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 addEnvInformation ( Information $information )
$information PhpBench\Environment\Information

createBenchmark() 공개 메소드

Create and add a benchmark.
public createBenchmark ( string $class ) : Benchmark
$class string
리턴 Benchmark

generateUuid() 공개 메소드

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 getBenchmarks ( )

getConfigPath() 공개 메소드

public getConfigPath ( )

getContextName() 공개 메소드

public getContextName ( )

getDate() 공개 메소드

public getDate ( )

getEnvInformations() 공개 메소드

public getEnvInformations ( ) : Information[]
리턴 PhpBench\Environment\Information[]

getErrorStacks() 공개 메소드

public getErrorStacks ( )

getIterations() 공개 메소드

public getIterations ( )

getIterator() 공개 메소드

public getIterator ( )

getSubjects() 공개 메소드

public getSubjects ( )

getSummary() 공개 메소드

public getSummary ( )

getUuid() 공개 메소드

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

getVariants() 공개 메소드

public getVariants ( )

setEnvInformations() 공개 메소드

public setEnvInformations ( array $envInformations )
$envInformations array