PHP 클래스 PhpBench\Model\Benchmark

상속: implements IteratorAggregate
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

createSubject() 공개 메소드

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

createSubjectFromMetadata() 공개 메소드

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

getClass() 공개 메소드

Return the benchmark class.
public getClass ( ) : string
리턴 string

getIterator() 공개 메소드

public getIterator ( )

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[]
리턴 PhpBench\Benchmark\Metadata\SubjectMetadata[]

getSuite() 공개 메소드

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