original_string: public function getLoader($type, $locale)
      {
          switch ($type) {
              case 'yaml':
                  return $this->newLoaderYaml($locale);
              case 'php':
                  return $this->newLoaderPHP($locale);
          }
          throw new \InvalidArgumentException("Unknown loader type '$type'.");
      }
code: public function getLoader($type, $locale)
      {
          switch ($type) {
              case 'yaml':
                  return $this->newLoaderYaml($locale);
              case 'php':
                  return $this->newLoaderPHP($locale);
          }
          throw new \InvalidArgumentException("Unknown loader type '$type'.");
      }
code_tokens: public function getLoader ( $ type , $ locale ) { switch ( $ type ) { case 'yaml' : return $ this -> newLoaderYaml ( $ locale ) ; case 'php' : return $ this -> newLoaderPHP ( $ locale ) ; } throw new \ InvalidArgumentException ( "Unknown loader type '$type'." ) ; }
docstring: Returns a loader for a specific type and locale.
  
  @param $type
  @param $locale
  @return BaseLoader|YamlLoader
  @throws \InvalidArgumentException
docstring_tokens: Returns a loader for a specific type and locale .