public function generate(Module $module, $modelName, array $arrayValues)
    {
        $modelClass = $module->getNamespace() . '\\Model\\' . $modelName;
        $modelPath  = $module->getPath() . '/Model/' . str_replace('\\', '/', $modelName) . '.php';
        
        $modelCode  = $this->generateCode($module, $modelName, $arrayValues);
        
        if (file_exists($modelPath)) {
            throw new \RuntimeException(sprintf('Model "%s" already exists.', $modelClass));
        }
        
        $this->explorer->mkdir(dirname($modelPath));
        file_put_contents($modelPath, $modelCode);
    }