@@ -51,6 +51,9 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param boolean $is_authorized |
|
| 56 | + */ |
|
| 54 | 57 | protected function set_authorized( $is_authorized ) { |
| 55 | 58 | $this->is_authorized = $is_authorized; |
| 56 | 59 | } |
@@ -59,6 +62,9 @@ discard block |
||
| 59 | 62 | return $this->is_authorized; |
| 60 | 63 | } |
| 61 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $function |
|
| 67 | + */ |
|
| 62 | 68 | public function try_soap( $function ) { |
| 63 | 69 | $args = func_get_args(); |
| 64 | 70 | array_shift( $args ); |
@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | protected $store; |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param ActionScheduler_Store $store |
|
| 17 | + */ |
|
| 15 | 18 | function __construct( $store ) { |
| 16 | 19 | $this->store = $store; |
| 17 | 20 | } |
@@ -61,7 +64,7 @@ discard block |
||
| 61 | 64 | * |
| 62 | 65 | * @param string $status Action status label/name string. |
| 63 | 66 | * @param string $date_type Oldest or Newest. |
| 64 | - * @return DateTime |
|
| 67 | + * @return string |
|
| 65 | 68 | */ |
| 66 | 69 | protected function get_action_status_date( $status, $date_type = 'oldest' ) { |
| 67 | 70 | |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * Executes a nextRecordsUrl SOQL query based on the previous result, |
| 504 | 504 | * and places each updated SF object into the queue for later processing. |
| 505 | 505 | * |
| 506 | - * @param gmdate $last_sync |
|
| 506 | + * @param string $last_sync |
|
| 507 | 507 | * @param array $salesforce_mapping |
| 508 | 508 | * @param array $map_sync_triggers |
| 509 | 509 | * @param string $type |
@@ -569,8 +569,6 @@ discard block |
||
| 569 | 569 | * @param string $type the Salesforce object type |
| 570 | 570 | * @param array $salesforce_mapping the map between object types |
| 571 | 571 | * @param array $query_options the options for the SOQL query |
| 572 | - * @param bool $check are we just checking? |
|
| 573 | - * @return object|bool $soql|$does_next_offset_have_results |
|
| 574 | 572 | * |
| 575 | 573 | */ |
| 576 | 574 | private function check_offset_query( $type, $salesforce_mapping, $query_options ) { |
@@ -756,7 +754,7 @@ discard block |
||
| 756 | 754 | * @param string $type |
| 757 | 755 | * e.g. "Contact", "Account", etc. |
| 758 | 756 | * |
| 759 | - * @return timestamp $pull_trigger_field_value |
|
| 757 | + * @return string $pull_trigger_field_value |
|
| 760 | 758 | * |
| 761 | 759 | */ |
| 762 | 760 | private function get_pull_date_value( $type, $soql ) { |
@@ -1090,7 +1088,7 @@ discard block |
||
| 1090 | 1088 | * |
| 1091 | 1089 | * @param string $object_type |
| 1092 | 1090 | * Type of Salesforce object. |
| 1093 | - * @param array|string $object |
|
| 1091 | + * @param string $object |
|
| 1094 | 1092 | * The Salesforce data or its Id value. |
| 1095 | 1093 | * @param int $sf_sync_trigger |
| 1096 | 1094 | * Trigger for this sync. |
@@ -2169,12 +2167,6 @@ discard block |
||
| 2169 | 2167 | * Array of the salesforce object's data |
| 2170 | 2168 | * @param string $sf_sync_trigger |
| 2171 | 2169 | * The current operation's trigger |
| 2172 | - * @param array $mapping |
|
| 2173 | - * the fieldmap that maps the two object types |
|
| 2174 | - * @param array $map_sync_triggers |
|
| 2175 | - * |
|
| 2176 | - * @return bool $pull_allowed |
|
| 2177 | - * Whether all this stuff allows the $result to be pulled into WordPress |
|
| 2178 | 2170 | * |
| 2179 | 2171 | */ |
| 2180 | 2172 | private function is_pull_allowed( $object_type, $object, $sf_sync_trigger, $salesforce_mapping, $map_sync_triggers ) { |