PhpBench\Model\Benchmark::getSubjects PHP 메소드

getSubjects() 공개 메소드

Get the subject metadata instances for this benchmark metadata.
public getSubjects ( ) : SubjectMetadata[]
리턴 PhpBench\Benchmark\Metadata\SubjectMetadata[]
    public function getSubjects()
    {
        return $this->subjects;
    }

Usage Example

예제 #1
0
 private function processBenchmark(Benchmark $benchmark, \DOMElement $suiteEl)
 {
     $benchmarkEl = $suiteEl->appendElement('benchmark');
     $benchmarkEl->setAttribute('class', $benchmark->getClass());
     foreach ($benchmark->getSubjects() as $subject) {
         $this->processSubject($subject, $benchmarkEl);
     }
 }
All Usage Examples Of PhpBench\Model\Benchmark::getSubjects