public getTop ( ) : |
||
return |
public function getTop()
{
if (!isset($this->reflectionClasses[0])) {
throw new \InvalidArgumentException('Cannot get top reflection class, reflection hierarchy is empty.');
}
return $this->reflectionClasses[0];
}
public function getMetadataForHierarchy(ReflectionHierarchy $hierarchy) { $primaryReflection = $hierarchy->getTop(); $benchmark = new BenchmarkMetadata($primaryReflection->path, $primaryReflection->class); $this->buildBenchmark($benchmark, $hierarchy); return $benchmark; }