original_string: public static function createWriter($type)
      {
          switch ($type) {
              case self::JSON:
                  return new Impl\Json();
              case self::YAML:
                  return new Impl\Yaml();
              case self::INI:
                  return new Impl\Ini();
              case self::COLUMNS:
                  return new Impl\Columns();
              case self::TABLE:
                  return new Impl\ConsoleTable();
              case self::MARKDOWN:
                  return new Impl\MarkdownTable();
              case self::DUMP:
                  return new Impl\Dump();
          }
  
          throw new UnknownWriterTypeException("Sorry, writer type {$type} is not something I do");
      }
code: public static function createWriter($type)
      {
          switch ($type) {
              case self::JSON:
                  return new Impl\Json();
              case self::YAML:
                  return new Impl\Yaml();
              case self::INI:
                  return new Impl\Ini();
              case self::COLUMNS:
                  return new Impl\Columns();
              case self::TABLE:
                  return new Impl\ConsoleTable();
              case self::MARKDOWN:
                  return new Impl\MarkdownTable();
              case self::DUMP:
                  return new Impl\Dump();
          }
  
          throw new UnknownWriterTypeException("Sorry, writer type {$type} is not something I do");
      }
code_tokens: public static function createWriter ( $ type ) { switch ( $ type ) { case self :: JSON : return new Impl \ Json ( ) ; case self :: YAML : return new Impl \ Yaml ( ) ; case self :: INI : return new Impl \ Ini ( ) ; case self :: COLUMNS : return new Impl \ Columns ( ) ; case self :: TABLE : return new Impl \ ConsoleTable ( ) ; case self :: MARKDOWN : return new Impl \ MarkdownTable ( ) ; case self :: DUMP : return new Impl \ Dump ( ) ; } throw new UnknownWriterTypeException ( "Sorry, writer type {$type} is not something I do" ) ; }
docstring: Create a writer for the specified type.
  
  @param string $type
  @return WriterInterface
docstring_tokens: Create a writer for the specified type .