/** * Write the table sturctures to the file * * @param array $arrayTables Table name to export structure * @param string $path File path * * @return null */ private function writeTableStructureToFile($arrayTables, $path) { if (empty($arrayTables) || empty($path)) { return; } try { $file = new \Cx\Lib\FileSystem\File($path); $file->touch(); foreach ($arrayTables as $table) { $file->append($this->getTableStructure($table)); } } catch (\Cx\Lib\FileSystem\FileSystemException $e) { \DBG::msg($e->getMessage()); } }