Completed
Pull Request — 1.0 (#13)
by Raphaël
02:55
created
src/Service/EntitiesGeneratorService.php 1 patch
Doc Comments   +19 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,12 @@  discard block
 block discarded – undo
80 80
         return $namespace.'\\'.$daoClassName;
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $namespace
85
+     * @param string $className
86
+     * @param string $moduleName
87
+     * @param string $targetDirectory
88
+     */
83 89
     public function generateBean($fields, $namespace, $className, $moduleName, $targetDirectory)
84 90
     {
85 91
 
@@ -204,7 +210,6 @@  discard block
 block discarded – undo
204 210
      * Returns a unique identifier from the name.
205 211
      *
206 212
      * @param $name
207
-     * @param array $usedNames
208 213
      */
209 214
     private function getUniqueIdentifier($name, array $usedIdentifiers) {
210 215
         $id = self::camelCase($name);
@@ -219,6 +224,15 @@  discard block
 block discarded – undo
219 224
         }
220 225
     }
221 226
 
227
+    /**
228
+     * @param string $namespace
229
+     * @param string $className
230
+     * @param string $daoClassName
231
+     * @param string $moduleName
232
+     * @param string $targetDirectory
233
+     * @param string $moduleSingular
234
+     * @param string $modulePlural
235
+     */
222 236
     public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory, $moduleSingular, $modulePlural)
223 237
     {
224 238
         //        if (class_exists($namespace."\\".$className)) {
@@ -334,6 +348,10 @@  discard block
 block discarded – undo
334 348
         return $str;
335 349
     }
336 350
 
351
+    /**
352
+     * @param string $description
353
+     * @param string $type
354
+     */
337 355
     private static function registerProperty(PhpClass $class, $name, $description, $type)
338 356
     {
339 357
         if (!$class->hasProperty($name)) {
Please login to merge, or discard this patch.