/** * @param array $structure * @return string */ protected function dumpStructure(array $structure) { $this->writer->reset(); $this->dumpStructureRecursively($structure); return $this->writer->getContent(); }
/** * @param array $structure * @return string */ protected function dumpStructure(array $structure) { $this->writer->reset()->writeln('<?php')->writeln('return array(')->indent(); $this->dumpStructureRecursively($structure); return $this->writer->outdent()->writeln(');')->getContent(); }