/** * Write the file * * @param \Trismegiste\Mondrian\Parser\PhpFile $aFile */ public function write(PhpFile $aFile) { file_put_contents($aFile->getRealPath(), "<?php\n\n" . $this->prettyPrinter->prettyPrint(iterator_to_array($aFile->getIterator()))); }