/**
  * export
  *
  * @param string $type
  *
  * @return mixed
  */
 public function export($type = 'sql')
 {
     /** @var $exporter AbstractExporter */
     $exporter = AbstractExporter::getInstance($type);
     // Export it.
     return $exporter->export(true, false);
 }
 /**
  * export
  *
  * @param string $type
  * @param bool   $ignoreTrack
  * @param bool   $prefixOnly
  *
  * @return bool
  */
 public function export($type = 'yaml', $ignoreTrack = false, $prefixOnly = false)
 {
     $expoter = AbstractExporter::getInstance($type);
     $this->hook('pre-export');
     /** @var $expoter AbstractExporter */
     $content = $expoter->export($ignoreTrack, $prefixOnly);
     $this->hook('post-export');
     $result = $this->save($this->getPath($type), $content);
     $this->state->set('dump.count.tables', $expoter->getState()->get('dump.count.tables'));
     $this->state->set('dump.count.rows', $expoter->getState()->get('dump.count.rows'));
     return $result;
 }