コード例 #1
0
 /**
  * @param array $structure
  * @return string
  */
 protected function dumpStructure(array $structure)
 {
     $this->writer->reset();
     $this->dumpStructureRecursively($structure);
     return $this->writer->getContent();
 }
コード例 #2
0
 /**
  * @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();
 }