Completed
Pull Request — master (#5)
by
unknown
01:55
created
src/Davispeixoto/ForceDotComToolkitForPhp/SforceBaseClient.php 1 patch
Doc Comments   +19 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
     protected $localeOptions;
65 65
     protected $packageVersionHeader;
66 66
 
67
+    /**
68
+     * @param string $wsdl
69
+     */
67 70
     protected function getSoapClient($wsdl, $options)
68 71
     {
69 72
         return new SoapClient($wsdl, $options);
@@ -230,6 +233,9 @@  discard block
 block discarded – undo
230 233
         $this->sforce->__setLocation($location);
231 234
     }
232 235
 
236
+    /**
237
+     * @param string $call
238
+     */
233 239
     private function setHeaders($call = null)
234 240
     {
235 241
         $this->sforce->__setSoapHeaders(null);
@@ -553,6 +559,9 @@  discard block
 block discarded – undo
553 559
         return $this->sforce->create($arg)->result;
554 560
     }
555 561
 
562
+    /**
563
+     * @param stdClass $arg
564
+     */
556 565
     protected function _merge($arg)
557 566
     {
558 567
         $this->setHeaders("merge");
@@ -560,6 +569,9 @@  discard block
 block discarded – undo
560 569
         return $this->sforce->merge($arg)->result;
561 570
     }
562 571
 
572
+    /**
573
+     * @param stdClass $arg
574
+     */
563 575
     protected function _process($arg)
564 576
     {
565 577
         $this->setHeaders();
@@ -567,6 +579,9 @@  discard block
 block discarded – undo
567 579
         return $this->sforce->process($arg)->result;
568 580
     }
569 581
 
582
+    /**
583
+     * @param stdClass $arg
584
+     */
570 585
     protected function _update($arg)
571 586
     {
572 587
         $this->setHeaders("update");
@@ -574,6 +589,9 @@  discard block
 block discarded – undo
574 589
         return $this->sforce->update($arg)->result;
575 590
     }
576 591
 
592
+    /**
593
+     * @param stdClass $arg
594
+     */
577 595
     protected function _upsert($arg)
578 596
     {
579 597
         $this->setHeaders("upsert");
@@ -890,7 +908,6 @@  discard block
 block discarded – undo
890 908
      * the specified criteria.
891 909
      *
892 910
      * @param string $query Query String
893
-     * @param QueryOptions $queryOptions Batch size limit.  OPTIONAL
894 911
      * @return QueryResult
895 912
      */
896 913
     public function query($query)
@@ -908,7 +925,6 @@  discard block
 block discarded – undo
908 925
      * Retrieves the next batch of objects from a query.
909 926
      *
910 927
      * @param string $queryLocator Represents the server-side cursor that tracks the current processing location in the query result set.
911
-     * @param QueryOptions $queryOptions Batch size limit.  OPTIONAL
912 928
      * @return QueryResult
913 929
      */
914 930
     public function queryMore($queryLocator)
@@ -964,7 +980,7 @@  discard block
 block discarded – undo
964 980
      * Executes a text search in your organization's data.
965 981
      *
966 982
      * @param string $searchString Search string that specifies the text expression to search for.
967
-     * @return SearchResult
983
+     * @return SforceSearchResult
968 984
      */
969 985
     public function search($searchString)
970 986
     {
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SforceEnterpriseClient.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,6 @@
 block discarded – undo
51 51
     /**
52 52
      * Adds one or more new individual objects to your organization's data.
53 53
      * @param array $sObjects Array of one or more sObjects (up to 200) to create.
54
-     * @param AssignmentRuleHeader $assignment_header is optional.  Defaults to NULL
55
-     * @param MruHeader $mru_header is optional.  Defaults to NULL
56 54
      * @return SaveResult
57 55
      */
58 56
     public function create($sObjects, $type)
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SforcePartnerClient.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,6 @@  discard block
 block discarded – undo
68 68
      * Merge records
69 69
      *
70 70
      * @param stdclass $mergeRequest
71
-     * @param String $type
72 71
      * @return mixed
73 72
      */
74 73
     public function merge($mergeRequest)
@@ -184,7 +183,7 @@  discard block
 block discarded – undo
184 183
 
185 184
     /**
186 185
      *
187
-     * @param mixed $response
186
+     * @param SObject[] $response
188 187
      * @return array
189 188
      */
190 189
     private function _retrieveResult($response)
Please login to merge, or discard this patch.
src/Davispeixoto/ForceDotComToolkitForPhp/SObject.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -284,6 +284,10 @@
 block discarded – undo
284 284
     /*
285 285
      * If the stdClass has a type, we know it is an SObject
286 286
     */
287
+
288
+    /**
289
+     * @param stdClass $param
290
+     */
287 291
     public function isSObject($param)
288 292
     {
289 293
         return isset($param->type);
Please login to merge, or discard this patch.