Completed
Pull Request — 1.1 (#29)
by
unknown
02:37
created
src/ZohoClient.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * Implements getFields API method.
87 87
      *
88
+     * @param string $module
88 89
      * @return Response The Response object
89 90
      */
90 91
     public function getFields($module)
@@ -144,7 +145,7 @@  discard block
 block discarded – undo
144 145
      * @param $sortOrderString
145 146
      * @param \DateTime $lastModifiedTime
146 147
      * @param $selectColumns
147
-     * @param $fromIndex
148
+     * @param integer $fromIndex
148 149
      * @param $toIndex
149 150
      *
150 151
      * @return Response The Response object
@@ -210,10 +211,10 @@  discard block
 block discarded – undo
210 211
      * Implements getRecords API method.
211 212
      *
212 213
      * @param $module
213
-     * @param $id
214
-     * @param $parentModule
215
-     * @param null $fromIndex
216
-     * @param null $toIndex
214
+     * @param string $id
215
+     * @param string $parentModule
216
+     * @param integer $fromIndex
217
+     * @param integer $toIndex
217 218
      *
218 219
      * @return Response
219 220
      *
@@ -242,7 +243,7 @@  discard block
 block discarded – undo
242 243
      * @param int       $fromIndex
243 244
      * @param int       $toIndex
244 245
      * @param \DateTime $lastModifiedTime
245
-     * @param null      $selectColumns
246
+     * @param string|null      $selectColumns
246 247
      *
247 248
      * @return Response
248 249
      *
@@ -309,6 +310,7 @@  discard block
 block discarded – undo
309 310
      * @param bool $wfTrigger
310 311
      * @param int  $duplicateCheck
311 312
      * @param bool $isApproval
313
+     * @param \SimpleXMLElement $xmlData
312 314
      *
313 315
      * @return Response
314 316
      *
@@ -361,8 +363,8 @@  discard block
 block discarded – undo
361 363
      * Implements uploadFile API method.
362 364
      *
363 365
      * @param $module
364
-     * @param $id
365
-     * @param $content
366
+     * @param string $id
367
+     * @param string $content
366 368
      *
367 369
      * @return Response
368 370
      *
@@ -380,7 +382,7 @@  discard block
 block discarded – undo
380 382
      * Implements downloadFile API method.
381 383
      *
382 384
      * @param $module
383
-     * @param $id
385
+     * @param string $id
384 386
      *
385 387
      * @return Response
386 388
      *
@@ -406,9 +408,7 @@  discard block
 block discarded – undo
406 408
      *
407 409
      * @param string                   $module  The module to use
408 410
      * @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]
411
+     * @param array                    $postParams  Options
412 412
      *
413 413
      * @return Response
414 414
      */
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     /**
445 445
      * Get the current request uri.
446 446
      *
447
-     * @param  $module The module to use
447
+     * @param  string $module The module to use
448 448
      * @param string $command Command for get uri
449 449
      *
450 450
      * @return string
Please login to merge, or discard this patch.
src/Service/EntitiesGeneratorService.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,6 +89,13 @@  discard block
 block discarded – undo
89 89
         return $namespace.'\\'.$daoClassName;
90 90
     }
91 91
 
92
+    /**
93
+     * @param string $namespace
94
+     * @param string $className
95
+     * @param string $moduleName
96
+     * @param string $targetDirectory
97
+     * @param string $moduleSingular
98
+     */
92 99
     public function generateBean($fields, $namespace, $className, $moduleName, $targetDirectory, $moduleSingular)
93 100
     {
94 101
 
@@ -218,7 +225,6 @@  discard block
 block discarded – undo
218 225
      * Returns a unique identifier from the name.
219 226
      *
220 227
      * @param $name
221
-     * @param array $usedNames
222 228
      */
223 229
     private function getUniqueIdentifier($name, array $usedIdentifiers)
224 230
     {
@@ -235,6 +241,15 @@  discard block
 block discarded – undo
235 241
         }
236 242
     }
237 243
 
244
+    /**
245
+     * @param string $namespace
246
+     * @param string $className
247
+     * @param string $daoClassName
248
+     * @param string $moduleName
249
+     * @param string $targetDirectory
250
+     * @param string $moduleSingular
251
+     * @param string $modulePlural
252
+     */
238 253
     public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory, $moduleSingular, $modulePlural)
239 254
     {
240 255
         //        if (class_exists($namespace."\\".$className)) {
@@ -353,6 +368,10 @@  discard block
 block discarded – undo
353 368
         return $str;
354 369
     }
355 370
 
371
+    /**
372
+     * @param string $description
373
+     * @param string $type
374
+     */
356 375
     private static function registerProperty(PhpClass $class, $name, $description, $type, $nullable = false)
357 376
     {
358 377
         if (!$class->hasProperty($name)) {
Please login to merge, or discard this patch.