Beispiel #1
0
 /**
  * @param  Model             $model
  * @param  OutputInterface   $output
  * @throws \RuntimeException
  */
 public function writeModel(Model $model, OutputInterface $output)
 {
     $data = $model->getGenerator()->generate();
     if (!$model->getGenerator() instanceof BinGenerator) {
         $data = '<?php' . PHP_EOL . PHP_EOL . $data;
     }
     $this->writeData($model->getPath(), $data, $output);
 }