PHP Class PhpBench\Model\Benchmark

Inheritance: implements IteratorAggregate
Show file Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( Suite $suite, mixed $class )
createSubject ( string $name ) : Subject Create and add a subject.
createSubjectFromMetadata ( SubjectMetadata $metadata )
getClass ( ) : string Return the benchmark class.
getIterator ( )
getPath ( ) : string Get the file path of this benchmark.
getSubjects ( ) : SubjectMetadata[] Get the subject metadata instances for this benchmark metadata.
getSuite ( ) : Suite Return the suite to which this benchmark belongs.

Method Details

__construct() public method

public __construct ( Suite $suite, mixed $class )
$suite Suite
$class mixed

createSubject() public method

Create and add a subject.
public createSubject ( string $name ) : Subject
$name string
return Subject

createSubjectFromMetadata() public method

public createSubjectFromMetadata ( SubjectMetadata $metadata )
$metadata PhpBench\Benchmark\Metadata\SubjectMetadata

getClass() public method

Return the benchmark class.
public getClass ( ) : string
return string

getIterator() public method

public getIterator ( )

getPath() public method

Get the file path of this benchmark.
public getPath ( ) : string
return string

getSubjects() public method

Get the subject metadata instances for this benchmark metadata.
public getSubjects ( ) : SubjectMetadata[]
return PhpBench\Benchmark\Metadata\SubjectMetadata[]

getSuite() public method

Return the suite to which this benchmark belongs.
public getSuite ( ) : Suite
return Suite