original_string: public static function fromKind($kind) {
          $composerMap = self::getComposerMap();
          if (!array_key_exists($kind, $composerMap))
              throw new ComposerException("no composer found for \"$kind\"");
          $class = $composerMap[$kind];
          return new $class();
      }
code: public static function fromKind($kind) {
          $composerMap = self::getComposerMap();
          if (!array_key_exists($kind, $composerMap))
              throw new ComposerException("no composer found for \"$kind\"");
          $class = $composerMap[$kind];
          return new $class();
      }
code_tokens: public static function fromKind ( $ kind ) { $ composerMap = self :: getComposerMap ( ) ; if ( ! array_key_exists ( $ kind , $ composerMap ) ) throw new ComposerException ( "no composer found for \"$kind\"" ) ; $ class = $ composerMap [ $ kind ] ; return new $ class ( ) ; }
docstring: Creates a composer from a kind.
  @param string $kind
  @return Composer
docstring_tokens: Creates a composer from a kind .