original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Generate PDO Model
  
  @param Module $module
  @param string $modelName
  @param array $arrayValues
docstring_tokens: Generate PDO Model