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");
    }
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");
    }
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" ) ; }
Create a writer for the specified type.

@param string $type
@return WriterInterface
Create a writer for the specified type .