PhpBench\Benchmark\Metadata\BenchmarkMetadata::getPath PHP Метод

getPath() публичный Метод

Get the file path of this benchmark.
public getPath ( ) : string
Результат string
    public function getPath()
    {
        return $this->path;
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function executeMethods(BenchmarkMetadata $benchmark, array $methods)
 {
     $tokens = array('class' => $benchmark->getClass(), 'file' => $benchmark->getPath(), 'methods' => var_export($methods, true));
     $payload = $this->launcher->payload(__DIR__ . '/template/benchmark_static_methods.template', $tokens);
     $payload->launch();
 }