@@ -64,6 +64,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -51,8 +51,6 @@ |
||
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) |
@@ -68,7 +68,6 @@ discard block |
||
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 |
||
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) |
@@ -284,6 +284,10 @@ |
||
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); |