original_string: protected function getLoader($type)
      {
          if (!isset($this->loaders[$type])) {
              throw new \InvalidArgumentException("No loader defined for type '${type}'.");
          }
  
          return $this->loaders[$type];
      }
code: protected function getLoader($type)
      {
          if (!isset($this->loaders[$type])) {
              throw new \InvalidArgumentException("No loader defined for type '${type}'.");
          }
  
          return $this->loaders[$type];
      }
code_tokens: protected function getLoader ( $ type ) { if ( ! isset ( $ this -> loaders [ $ type ] ) ) { throw new \ InvalidArgumentException ( "No loader defined for type '${type}'." ) ; } return $ this -> loaders [ $ type ] ; }
docstring: Get the resource loader for a given type
  
  @param string $type the resource type
  
  @return ResourceLoaderInterface the resource loader
  
  @throws \InvalidArgumentException if no loader defined for the given type
docstring_tokens: Get the resource loader for a given type