public function parse()
    {
        foreach($this->parser->parse($this->inputFile) as $item) {
            $writer = WriterFactory::create($item['type'], $this->config);

            if($writer) {
                $writer->write($item);
            }
        }
    }
public function parse()
    {
        foreach($this->parser->parse($this->inputFile) as $item) {
            $writer = WriterFactory::create($item['type'], $this->config);

            if($writer) {
                $writer->write($item);
            }
        }
    }
public function parse ( ) { foreach ( $ this -> parser -> parse ( $ this -> inputFile ) as $ item ) { $ writer = WriterFactory :: create ( $ item [ 'type' ] , $ this -> config ) ; if ( $ writer ) { $ writer -> write ( $ item ) ; } } }
Calls the parser and generates the files

@throws \Exception
Calls the parser and generates the files