PhpBench\Model\Subject::getName PHP Method

getName() public method

Return the method name of this subject.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

Ejemplo n.º 1
0
 private function processSubject(Subject $subject, \DOMElement $benchmarkEl)
 {
     $subjectEl = $benchmarkEl->appendElement('subject');
     $subjectEl->setAttribute('name', $subject->getName());
     foreach ($subject->getGroups() as $group) {
         $groupEl = $subjectEl->appendElement('group');
         $groupEl->setAttribute('name', $group);
     }
     foreach ($subject->getVariants() as $variant) {
         $this->processVariant($subject, $variant, $subjectEl);
     }
 }