@@ -48,6 +48,10 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $targetDirectory |
|
| 53 | + * @param string $namespace |
|
| 54 | + */ |
|
| 51 | 55 | public function generateModule($moduleName, $modulePlural, $moduleSingular, $targetDirectory, $namespace) |
| 52 | 56 | { |
| 53 | 57 | $fields = $this->zohoClient->getFields($moduleName); |
@@ -66,6 +70,10 @@ discard block |
||
| 66 | 70 | $this->generateDao($fieldRecords, $namespace, $className, $daoClassName, $moduleName, $targetDirectory); |
| 67 | 71 | } |
| 68 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $namespace |
|
| 75 | + * @param string $className |
|
| 76 | + */ |
|
| 69 | 77 | public function generateBean($fields, $namespace, $className, $moduleName, $targetDirectory) |
| 70 | 78 | { |
| 71 | 79 | |
@@ -185,7 +193,6 @@ discard block |
||
| 185 | 193 | * Returns a unique identifier from the name. |
| 186 | 194 | * |
| 187 | 195 | * @param $name |
| 188 | - * @param array $usedNames |
|
| 189 | 196 | */ |
| 190 | 197 | private function getUniqueIdentifier($name, array $usedIdentifiers) { |
| 191 | 198 | $id = self::camelCase($name); |
@@ -200,6 +207,11 @@ discard block |
||
| 200 | 207 | } |
| 201 | 208 | } |
| 202 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $namespace |
|
| 212 | + * @param string $className |
|
| 213 | + * @param string $daoClassName |
|
| 214 | + */ |
|
| 203 | 215 | public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory) |
| 204 | 216 | { |
| 205 | 217 | // if (class_exists($namespace."\\".$className)) { |
@@ -311,6 +323,10 @@ discard block |
||
| 311 | 323 | return $str; |
| 312 | 324 | } |
| 313 | 325 | |
| 326 | + /** |
|
| 327 | + * @param string $description |
|
| 328 | + * @param string $type |
|
| 329 | + */ |
|
| 314 | 330 | private static function registerProperty(PhpClass $class, $name, $description, $type) |
| 315 | 331 | { |
| 316 | 332 | if (!$class->hasProperty($name)) { |