public function generate()
{
$files = [];
$modulePath = $this->getModulePath();
$files[] = new CodeFile($modulePath . '/' . StringHelper::basename($this->moduleClass) . '.php', $this->render('module.php'));
$files[] = new CodeFile($modulePath . '/controllers/DefaultController.php', $this->render('controller.php'));
$files[] = new CodeFile($modulePath . '/views/default/index.php', $this->render('view.php'));
$files[] = new CodeFile($modulePath . '/traits/ActiveRecordDbConnectionTrait.php', $this->render('db-connection-trait.php'));
return $files;
}