Completed
Pull Request — 1.1 (#23)
by David
08:32
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   +21 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
 
@@ -220,7 +227,6 @@  discard block
 block discarded – undo
220 227
      * Returns a unique identifier from the name.
221 228
      *
222 229
      * @param $name
223
-     * @param array $usedNames
224 230
      */
225 231
     private function getUniqueIdentifier($name, array $usedIdentifiers)
226 232
     {
@@ -237,6 +243,15 @@  discard block
 block discarded – undo
237 243
         }
238 244
     }
239 245
 
246
+    /**
247
+     * @param string $namespace
248
+     * @param string $className
249
+     * @param string $daoClassName
250
+     * @param string $moduleName
251
+     * @param string $targetDirectory
252
+     * @param string $moduleSingular
253
+     * @param string $modulePlural
254
+     */
240 255
     public function generateDao($fields, $namespace, $className, $daoClassName, $moduleName, $targetDirectory, $moduleSingular, $modulePlural)
241 256
     {
242 257
         //        if (class_exists($namespace."\\".$className)) {
@@ -355,6 +370,11 @@  discard block
 block discarded – undo
355 370
         return $str;
356 371
     }
357 372
 
373
+    /**
374
+     * @param string $description
375
+     * @param string $type
376
+     * @param string $setterType
377
+     */
358 378
     private static function registerProperty(PhpClass $class, $name, $description, $type, $nullable = false, $setterType = null)
359 379
     {
360 380
         if ($setterType === null) {
Please login to merge, or discard this patch.