PhpBench\Benchmark\Metadata\BenchmarkMetadata::getClass PHP Method

getClass() public method

Return the benchmark class.
public getClass ( ) : string
return string
    public function getClass()
    {
        return $this->class;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function benchmarkStart(BenchmarkMetadata $benchmark)
 {
     static $first = true;
     if (false === $first) {
         $this->output->write(PHP_EOL);
     }
     $first = false;
     $this->output->writeln(sprintf('<comment>%s</comment>', $benchmark->getClass()));
     $this->output->write(PHP_EOL);
 }
All Usage Examples Of PhpBench\Benchmark\Metadata\BenchmarkMetadata::getClass