original_string: protected function resolveTypeClassName($type)
      {
          $types = [
              'page'    => Page::class,
              'partial' => Partial::class,
              'layout'  => Layout::class,
              'content' => Content::class,
              'asset'   => Asset::class
          ];
  
          if (!array_key_exists($type, $types)) {
              throw new ApplicationException(trans('cms::lang.template.invalid_type'));
          }
  
          return $types[$type];
      }
code: protected function resolveTypeClassName($type)
      {
          $types = [
              'page'    => Page::class,
              'partial' => Partial::class,
              'layout'  => Layout::class,
              'content' => Content::class,
              'asset'   => Asset::class
          ];
  
          if (!array_key_exists($type, $types)) {
              throw new ApplicationException(trans('cms::lang.template.invalid_type'));
          }
  
          return $types[$type];
      }
code_tokens: protected function resolveTypeClassName ( $ type ) { $ types = [ 'page' => Page :: class , 'partial' => Partial :: class , 'layout' => Layout :: class , 'content' => Content :: class , 'asset' => Asset :: class ] ; if ( ! array_key_exists ( $ type , $ types ) ) { throw new ApplicationException ( trans ( 'cms::lang.template.invalid_type' ) ) ; } return $ types [ $ type ] ; }
docstring: Reolves a template type to its class name
  @param string $type
  @return string
docstring_tokens: Reolves a template type to its class name