original_string: protected function _method(Exception $exception)
      {
          $exception = $this->_unwrap($exception);
          list(, $baseClass) = namespaceSplit(get_class($exception));
  
          if (substr($baseClass, -9) === 'Exception') {
              $baseClass = substr($baseClass, 0, -9);
          }
  
          $method = Inflector::variable($baseClass) ?: 'error500';
  
          return $this->method = $method;
      }
code: protected function _method(Exception $exception)
      {
          $exception = $this->_unwrap($exception);
          list(, $baseClass) = namespaceSplit(get_class($exception));
  
          if (substr($baseClass, -9) === 'Exception') {
              $baseClass = substr($baseClass, 0, -9);
          }
  
          $method = Inflector::variable($baseClass) ?: 'error500';
  
          return $this->method = $method;
      }
code_tokens: protected function _method ( Exception $ exception ) { $ exception = $ this -> _unwrap ( $ exception ) ; list ( , $ baseClass ) = namespaceSplit ( get_class ( $ exception ) ) ; if ( substr ( $ baseClass , - 9 ) === 'Exception' ) { $ baseClass = substr ( $ baseClass , 0 , - 9 ) ; } $ method = Inflector :: variable ( $ baseClass ) ? : 'error500' ; return $ this -> method = $ method ; }
docstring: Get method name
  
  @param \Exception $exception Exception instance.
  @return string
docstring_tokens: Get method name