@@ -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 | |
@@ -181,6 +189,11 @@ discard block |
||
| 181 | 189 | } |
| 182 | 190 | } |
| 183 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $namespace |
|
| 194 | + * @param string $className |
|
| 195 | + * @param string $daoClassName |
|
| 196 | + */ |
|
| 184 | 197 | public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory) |
| 185 | 198 | { |
| 186 | 199 | // if (class_exists($namespace."\\".$className)) { |
@@ -288,6 +301,10 @@ discard block |
||
| 288 | 301 | return $str; |
| 289 | 302 | } |
| 290 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $description |
|
| 306 | + * @param string $type |
|
| 307 | + */ |
|
| 291 | 308 | private static function registerProperty(PhpClass $class, $name, $description, $type) |
| 292 | 309 | { |
| 293 | 310 | if (!$class->hasProperty($name)) { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * @param $sortOrderString |
| 145 | 145 | * @param \DateTime $lastModifiedTime |
| 146 | 146 | * @param $selectColumns |
| 147 | - * @param $fromIndex |
|
| 147 | + * @param integer $fromIndex |
|
| 148 | 148 | * @param $toIndex |
| 149 | 149 | * |
| 150 | 150 | * @return Response The Response object |
@@ -210,10 +210,10 @@ discard block |
||
| 210 | 210 | * Implements getRecords API method. |
| 211 | 211 | * |
| 212 | 212 | * @param $module |
| 213 | - * @param $id |
|
| 214 | - * @param $parentModule |
|
| 215 | - * @param null $fromIndex |
|
| 216 | - * @param null $toIndex |
|
| 213 | + * @param string $id |
|
| 214 | + * @param string $parentModule |
|
| 215 | + * @param integer $fromIndex |
|
| 216 | + * @param integer $toIndex |
|
| 217 | 217 | * |
| 218 | 218 | * @return Response |
| 219 | 219 | * |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param int $fromIndex |
| 243 | 243 | * @param int $toIndex |
| 244 | 244 | * @param \DateTime $lastModifiedTime |
| 245 | - * @param null $selectColumns |
|
| 245 | + * @param string|null $selectColumns |
|
| 246 | 246 | * |
| 247 | 247 | * @return Response |
| 248 | 248 | * |
@@ -309,6 +309,7 @@ discard block |
||
| 309 | 309 | * @param bool $wfTrigger |
| 310 | 310 | * @param int $duplicateCheck |
| 311 | 311 | * @param bool $isApproval |
| 312 | + * @param \SimpleXMLElement $xmlData |
|
| 312 | 313 | * |
| 313 | 314 | * @return Response |
| 314 | 315 | * |
@@ -361,8 +362,8 @@ discard block |
||
| 361 | 362 | * Implements uploadFile API method. |
| 362 | 363 | * |
| 363 | 364 | * @param $module |
| 364 | - * @param $id |
|
| 365 | - * @param $content |
|
| 365 | + * @param string $id |
|
| 366 | + * @param string $content |
|
| 366 | 367 | * |
| 367 | 368 | * @return Response |
| 368 | 369 | * |
@@ -380,7 +381,7 @@ discard block |
||
| 380 | 381 | * Implements downloadFile API method. |
| 381 | 382 | * |
| 382 | 383 | * @param $module |
| 383 | - * @param $id |
|
| 384 | + * @param string $id |
|
| 384 | 385 | * |
| 385 | 386 | * @return Response |
| 386 | 387 | * |
@@ -406,9 +407,7 @@ discard block |
||
| 406 | 407 | * |
| 407 | 408 | * @param string $module The module to use |
| 408 | 409 | * @param string $command Command to call |
| 409 | - * @param array $params Options |
|
| 410 | - * @param \SimpleXMLElement|string $data Data to send [optional] |
|
| 411 | - * @param array $options Options to add for configurations [optional] |
|
| 410 | + * @param array $postParams Options |
|
| 412 | 411 | * |
| 413 | 412 | * @return Response |
| 414 | 413 | */ |
@@ -444,7 +443,7 @@ discard block |
||
| 444 | 443 | /** |
| 445 | 444 | * Get the current request uri. |
| 446 | 445 | * |
| 447 | - * @param $module The module to use |
|
| 446 | + * @param string $module The module to use |
|
| 448 | 447 | * @param string $command Command for get uri |
| 449 | 448 | * |
| 450 | 449 | * @return string |