original_string: public function getName(Profile $profile, $panel)
      {
          $templates = $this->getNames($profile);
  
          if (!isset($templates[$panel])) {
              throw new NotFoundHttpException(sprintf('Panel "%s" is not registered in profiler or is not present in viewed profile.', $panel));
          }
  
          return $templates[$panel];
      }
code: public function getName(Profile $profile, $panel)
      {
          $templates = $this->getNames($profile);
  
          if (!isset($templates[$panel])) {
              throw new NotFoundHttpException(sprintf('Panel "%s" is not registered in profiler or is not present in viewed profile.', $panel));
          }
  
          return $templates[$panel];
      }
code_tokens: public function getName ( Profile $ profile , $ panel ) { $ templates = $ this -> getNames ( $ profile ) ; if ( ! isset ( $ templates [ $ panel ] ) ) { throw new NotFoundHttpException ( sprintf ( 'Panel "%s" is not registered in profiler or is not present in viewed profile.' , $ panel ) ) ; } return $ templates [ $ panel ] ; }
docstring: Gets the template name for a given panel.
  
  @param Profile $profile
  @param string  $panel
  
  @return mixed
  
  @throws NotFoundHttpException
docstring_tokens: Gets the template name for a given panel .