@@ -20,10 +20,10 @@ |
||
| 20 | 20 | $endpoint = "https://api.hubapi.com/email/public/v1/singleEmail/send"; |
| 21 | 21 | |
| 22 | 22 | $options['json'] = [ |
| 23 | - 'emailId' => $id, |
|
| 24 | - 'message' => $message, |
|
| 25 | - 'contactProperties' => $contactProperties, |
|
| 26 | - 'customProperties' => $customProperties |
|
| 23 | + 'emailId' => $id, |
|
| 24 | + 'message' => $message, |
|
| 25 | + 'contactProperties' => $contactProperties, |
|
| 26 | + 'customProperties' => $customProperties |
|
| 27 | 27 | ]; |
| 28 | 28 | |
| 29 | 29 | return $this->client->request('post', $endpoint, $options); |
@@ -32,9 +32,9 @@ |
||
| 32 | 32 | $required['email'] = $contactEmail; |
| 33 | 33 | |
| 34 | 34 | $parameters = array_merge( |
| 35 | - $required, |
|
| 36 | - ['_m' => $contactRevenue], |
|
| 37 | - $contactProperties |
|
| 35 | + $required, |
|
| 36 | + ['_m' => $contactRevenue], |
|
| 37 | + $contactProperties |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | $query_string = build_query_string($parameters); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @param mixed $timestamp |
| 18 | 18 | * @param array $eventTypeData |
| 19 | 19 | * |
| 20 | - * @return mixed |
|
| 20 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 21 | 21 | * |
| 22 | 22 | * @see http://developers.hubspot.com/docs/methods/timeline/create-or-update-event |
| 23 | 23 | */ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param int $appId |
| 54 | 54 | * @param array $events |
| 55 | 55 | * |
| 56 | - * @return mixed |
|
| 56 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 57 | 57 | * |
| 58 | 58 | * @see https://developers.hubspot.com/docs/methods/timeline/batch-create-or-update-events |
| 59 | 59 | */ |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @param int $appId |
| 73 | 73 | * |
| 74 | - * @return mixed |
|
| 74 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 75 | 75 | * |
| 76 | 76 | * @see http://developers.hubspot.com/docs/methods/timeline/get-event-types |
| 77 | 77 | */ |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param string|null $detailTemplate |
| 91 | 91 | * @param string|null $objectType |
| 92 | 92 | * |
| 93 | - * @return mixed |
|
| 93 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 94 | 94 | * |
| 95 | 95 | * @see http://developers.hubspot.com/docs/methods/timeline/create-event-type |
| 96 | 96 | */ |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @param string|null $detailTemplate |
| 125 | 125 | * @param string|null $objectType |
| 126 | 126 | * |
| 127 | - * @return mixed |
|
| 127 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 128 | 128 | * |
| 129 | 129 | * @see http://developers.hubspot.com/docs/methods/timeline/update-event-type |
| 130 | 130 | */ |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * @param int $appId |
| 156 | 156 | * @param int $eventTypeId |
| 157 | 157 | * |
| 158 | - * @return mixed |
|
| 158 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 159 | 159 | * |
| 160 | 160 | * @see http://developers.hubspot.com/docs/methods/timeline/delete-event-type |
| 161 | 161 | */ |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | * @param int $appId |
| 172 | 172 | * @param int $eventTypeId |
| 173 | 173 | * |
| 174 | - * @return mixed |
|
| 174 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 175 | 175 | * |
| 176 | 176 | * @see http://developers.hubspot.com/docs/methods/timeline/get-timeline-event-type-properties |
| 177 | 177 | */ |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * @param string|null $objectProperty |
| 193 | 193 | * @param array $options |
| 194 | 194 | * |
| 195 | - * @return mixed |
|
| 195 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 196 | 196 | * |
| 197 | 197 | * @see http://developers.hubspot.com/docs/methods/timeline/create-timeline-event-type-property |
| 198 | 198 | */ |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * @param string $propertyType |
| 230 | 230 | * @param array|null $options |
| 231 | 231 | * |
| 232 | - * @return mixed |
|
| 232 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 233 | 233 | * |
| 234 | 234 | * @see http://developers.hubspot.com/docs/methods/timeline/udpate-timeline-event-type-property |
| 235 | 235 | */ |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * @param int $eventTypeId |
| 266 | 266 | * @param int $eventTypePropertyId |
| 267 | 267 | * |
| 268 | - * @return mixed |
|
| 268 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 269 | 269 | * |
| 270 | 270 | * @see http://developers.hubspot.com/docs/methods/timeline/delete-timeline-event-type-property |
| 271 | 271 | */ |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | /** |
| 9 | 9 | * @param array $deal Array of deal properties. |
| 10 | - * @return mixed |
|
| 10 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 11 | 11 | * @throws HubSpotException |
| 12 | 12 | */ |
| 13 | 13 | function create(array $deal) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @param int $id The deal id. |
| 24 | 24 | * @param array $deal The deal properties to update. |
| 25 | - * @return mixed |
|
| 25 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 26 | 26 | */ |
| 27 | 27 | function update($id, array $deal) |
| 28 | 28 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * @param int $id |
| 53 | - * @return mixed |
|
| 53 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 54 | 54 | */ |
| 55 | 55 | function delete($id) |
| 56 | 56 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @param array $params Optional parameters ['limit', 'offset'] |
| 64 | - * @return mixed |
|
| 64 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 65 | 65 | */ |
| 66 | 66 | function getRecentlyModified(array $params = []) |
| 67 | 67 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * @param array $params Optional parameters ['limit', 'offset'] |
| 76 | - * @return mixed |
|
| 76 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 77 | 77 | */ |
| 78 | 78 | function getRecentlyCreated(array $params = []) |
| 79 | 79 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * @param int $id |
| 88 | - * @return mixed |
|
| 88 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 89 | 89 | */ |
| 90 | 90 | function getById($id) |
| 91 | 91 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * @param int $dealId |
| 99 | 99 | * @param int|int[] $companyIds |
| 100 | - * @return mixed |
|
| 100 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 101 | 101 | */ |
| 102 | 102 | function associateWithCompany($dealId, $companyIds) |
| 103 | 103 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * @param int $dealId |
| 113 | 113 | * @param int|int[] $companyIds |
| 114 | - * @return mixed |
|
| 114 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 115 | 115 | */ |
| 116 | 116 | function disassociateFromCompany($dealId, $companyIds) |
| 117 | 117 | { |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * @param int $dealId |
| 127 | 127 | * @param int|int[] $contactIds |
| 128 | - * @return mixed |
|
| 128 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 129 | 129 | */ |
| 130 | 130 | function associateWithContact($dealId, $contactIds) |
| 131 | 131 | { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | /** |
| 140 | 140 | * @param int $contactId |
| 141 | 141 | * @param array $params Optional parameters ['limit', 'offset'] |
| 142 | - * @return mixed |
|
| 142 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 143 | 143 | */ |
| 144 | 144 | function associatedWithContact($contactId, $params = []) |
| 145 | 145 | { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * @param int $dealId |
| 155 | 155 | * @param int|int[] $contactIds |
| 156 | - * @return mixed |
|
| 156 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 157 | 157 | */ |
| 158 | 158 | function disassociateFromContact($dealId, $contactIds) |
| 159 | 159 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @param string $clientId The Client ID of your app. |
| 13 | 13 | * @param string $redirectURI The URL that you want the visitor redirected to after granting access to your app. For security reasons, this URL must use https. |
| 14 | 14 | * @param array $scopesArray A set of scopes that your app will need access to. |
| 15 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 15 | + * @return string |
|
| 16 | 16 | */ |
| 17 | 17 | function getAuthUrl($clientId, $redirectURI, $scopesArray=array()) |
| 18 | 18 | { |
@@ -4,112 +4,112 @@ |
||
| 4 | 4 | |
| 5 | 5 | class OAuth2 extends Resource |
| 6 | 6 | { |
| 7 | - protected $endpoint = 'https://api.hubapi.com/oauth/v1'; |
|
| 7 | + protected $endpoint = 'https://api.hubapi.com/oauth/v1'; |
|
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Initiate an Integration with OAuth 2.0 |
|
| 11 | - * |
|
| 12 | - * @param string $clientId The Client ID of your app. |
|
| 13 | - * @param string $redirectURI The URL that you want the visitor redirected to after granting access to your app. For security reasons, this URL must use https. |
|
| 14 | - * @param array $scopesArray A set of scopes that your app will need access to. |
|
| 15 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 16 | - */ |
|
| 17 | - function getAuthUrl($clientId, $redirectURI, $scopesArray=array()) |
|
| 18 | - { |
|
| 19 | - $scopeString = ''; |
|
| 20 | - if(count($scopesArray)>0) |
|
| 21 | - { |
|
| 22 | - $scopeString = ''; |
|
| 23 | - foreach($scopesArray as $_index => $scopeStr) |
|
| 24 | - { |
|
| 25 | - if($_index>0) |
|
| 26 | - $scopeString .= "%20"; |
|
| 9 | + /** |
|
| 10 | + * Initiate an Integration with OAuth 2.0 |
|
| 11 | + * |
|
| 12 | + * @param string $clientId The Client ID of your app. |
|
| 13 | + * @param string $redirectURI The URL that you want the visitor redirected to after granting access to your app. For security reasons, this URL must use https. |
|
| 14 | + * @param array $scopesArray A set of scopes that your app will need access to. |
|
| 15 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 16 | + */ |
|
| 17 | + function getAuthUrl($clientId, $redirectURI, $scopesArray=array()) |
|
| 18 | + { |
|
| 19 | + $scopeString = ''; |
|
| 20 | + if(count($scopesArray)>0) |
|
| 21 | + { |
|
| 22 | + $scopeString = ''; |
|
| 23 | + foreach($scopesArray as $_index => $scopeStr) |
|
| 24 | + { |
|
| 25 | + if($_index>0) |
|
| 26 | + $scopeString .= "%20"; |
|
| 27 | 27 | |
| 28 | - $scopeString .= $scopeStr; |
|
| 29 | - } |
|
| 30 | - } |
|
| 28 | + $scopeString .= $scopeStr; |
|
| 29 | + } |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - return "https://app.hubspot.com/oauth/authorize?client_id={$clientId}&scope={$scopeString}&redirect_uri=".urlencode($redirectURI); |
|
| 33 | - } |
|
| 32 | + return "https://app.hubspot.com/oauth/authorize?client_id={$clientId}&scope={$scopeString}&redirect_uri=".urlencode($redirectURI); |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Get OAuth 2.0 Access Token and Refresh Tokens by using a one-time code |
|
| 37 | - * |
|
| 38 | - * @param string $clientId The Client ID of your app. |
|
| 39 | - * @param string $clientSecret The Client Secret of your app. |
|
| 40 | - * @param string $redirectURI The redirect URI that was used when the user authorized your app. This must exactly match the redirect_uri used when initiating the OAuth 2.0 connection. |
|
| 41 | - * @param string $tokenCode The code parameter returned to your redirect URI when the user authorized your app. Or a refresh token. |
|
| 42 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 43 | - */ |
|
| 44 | - function getTokensByCode($clientId, $clientSecret, $redirectURI, $tokenCode) |
|
| 45 | - { |
|
| 46 | - $options['form_params'] = [ |
|
| 47 | - 'grant_type' => 'authorization_code', |
|
| 48 | - 'client_id' => $clientId, |
|
| 49 | - 'client_secret' => $clientSecret, |
|
| 50 | - 'redirect_uri' => $redirectURI, |
|
| 51 | - 'code' => $tokenCode |
|
| 52 | - ]; |
|
| 35 | + /** |
|
| 36 | + * Get OAuth 2.0 Access Token and Refresh Tokens by using a one-time code |
|
| 37 | + * |
|
| 38 | + * @param string $clientId The Client ID of your app. |
|
| 39 | + * @param string $clientSecret The Client Secret of your app. |
|
| 40 | + * @param string $redirectURI The redirect URI that was used when the user authorized your app. This must exactly match the redirect_uri used when initiating the OAuth 2.0 connection. |
|
| 41 | + * @param string $tokenCode The code parameter returned to your redirect URI when the user authorized your app. Or a refresh token. |
|
| 42 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 43 | + */ |
|
| 44 | + function getTokensByCode($clientId, $clientSecret, $redirectURI, $tokenCode) |
|
| 45 | + { |
|
| 46 | + $options['form_params'] = [ |
|
| 47 | + 'grant_type' => 'authorization_code', |
|
| 48 | + 'client_id' => $clientId, |
|
| 49 | + 'client_secret' => $clientSecret, |
|
| 50 | + 'redirect_uri' => $redirectURI, |
|
| 51 | + 'code' => $tokenCode |
|
| 52 | + ]; |
|
| 53 | 53 | |
| 54 | - $options['headers']['content-type'] = 'application/x-www-form-urlencoded'; |
|
| 54 | + $options['headers']['content-type'] = 'application/x-www-form-urlencoded'; |
|
| 55 | 55 | |
| 56 | - return $this->client->request('post', $this->endpoint.'/token', $options); |
|
| 57 | - } |
|
| 56 | + return $this->client->request('post', $this->endpoint.'/token', $options); |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Get OAuth 2.0 Access Token and Refresh Tokens by using a refresh token |
|
| 61 | - * Note: Contrary to HubSpot documentation, $redirectURI is NOT required. |
|
| 62 | - * |
|
| 63 | - * @param string $clientId The Client ID of your app. |
|
| 64 | - * @param string $clientSecret The Client Secret of your app. |
|
| 65 | - * @param string $refreshToken The refresh token. |
|
| 66 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 67 | - */ |
|
| 68 | - function getTokensByRefresh($clientId, $clientSecret, $refreshToken) |
|
| 69 | - { |
|
| 70 | - $options['form_params'] = [ |
|
| 71 | - 'grant_type' => 'refresh_token', |
|
| 72 | - 'client_id' => $clientId, |
|
| 73 | - 'client_secret' => $clientSecret, |
|
| 74 | - 'refresh_token' => $refreshToken |
|
| 75 | - ]; |
|
| 59 | + /** |
|
| 60 | + * Get OAuth 2.0 Access Token and Refresh Tokens by using a refresh token |
|
| 61 | + * Note: Contrary to HubSpot documentation, $redirectURI is NOT required. |
|
| 62 | + * |
|
| 63 | + * @param string $clientId The Client ID of your app. |
|
| 64 | + * @param string $clientSecret The Client Secret of your app. |
|
| 65 | + * @param string $refreshToken The refresh token. |
|
| 66 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 67 | + */ |
|
| 68 | + function getTokensByRefresh($clientId, $clientSecret, $refreshToken) |
|
| 69 | + { |
|
| 70 | + $options['form_params'] = [ |
|
| 71 | + 'grant_type' => 'refresh_token', |
|
| 72 | + 'client_id' => $clientId, |
|
| 73 | + 'client_secret' => $clientSecret, |
|
| 74 | + 'refresh_token' => $refreshToken |
|
| 75 | + ]; |
|
| 76 | 76 | |
| 77 | - $options['headers']['content-type'] = 'application/x-www-form-urlencoded'; |
|
| 77 | + $options['headers']['content-type'] = 'application/x-www-form-urlencoded'; |
|
| 78 | 78 | |
| 79 | - return $this->client->request('post', $this->endpoint.'/token', $options); |
|
| 80 | - } |
|
| 79 | + return $this->client->request('post', $this->endpoint.'/token', $options); |
|
| 80 | + } |
|
| 81 | 81 | |
| 82 | - /** |
|
| 83 | - * Get Information for OAuth 2.0 Access Token |
|
| 84 | - * |
|
| 85 | - * @param int $token The access token that you want to get the information for. |
|
| 86 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 87 | - */ |
|
| 88 | - function getAccessTokenInfo($token) |
|
| 89 | - { |
|
| 90 | - return $this->client->request('get', $this->endpoint."/access-tokens/{$token}"); |
|
| 91 | - } |
|
| 82 | + /** |
|
| 83 | + * Get Information for OAuth 2.0 Access Token |
|
| 84 | + * |
|
| 85 | + * @param int $token The access token that you want to get the information for. |
|
| 86 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 87 | + */ |
|
| 88 | + function getAccessTokenInfo($token) |
|
| 89 | + { |
|
| 90 | + return $this->client->request('get', $this->endpoint."/access-tokens/{$token}"); |
|
| 91 | + } |
|
| 92 | 92 | |
| 93 | - /** |
|
| 94 | - * Get Information for OAuth 2.0 Refresh Token |
|
| 95 | - * |
|
| 96 | - * @param int $token The refresh token that you want to get the information for. |
|
| 97 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 98 | - */ |
|
| 99 | - function getRefreshTokenInfo($token) |
|
| 100 | - { |
|
| 101 | - return $this->client->request('get', $this->endpoint."/refresh-tokens/{$token}"); |
|
| 102 | - } |
|
| 93 | + /** |
|
| 94 | + * Get Information for OAuth 2.0 Refresh Token |
|
| 95 | + * |
|
| 96 | + * @param int $token The refresh token that you want to get the information for. |
|
| 97 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 98 | + */ |
|
| 99 | + function getRefreshTokenInfo($token) |
|
| 100 | + { |
|
| 101 | + return $this->client->request('get', $this->endpoint."/refresh-tokens/{$token}"); |
|
| 102 | + } |
|
| 103 | 103 | |
| 104 | - /** |
|
| 105 | - * Delete OAuth 2.0 Refresh Token |
|
| 106 | - * |
|
| 107 | - * @param int $token The refresh token that you want to delete. |
|
| 108 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 109 | - */ |
|
| 110 | - function deleteRefreshToken($token) |
|
| 111 | - { |
|
| 112 | - return $this->client->request('delete', $this->endpoint."/refresh-tokens/{$token}"); |
|
| 113 | - } |
|
| 104 | + /** |
|
| 105 | + * Delete OAuth 2.0 Refresh Token |
|
| 106 | + * |
|
| 107 | + * @param int $token The refresh token that you want to delete. |
|
| 108 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 109 | + */ |
|
| 110 | + function deleteRefreshToken($token) |
|
| 111 | + { |
|
| 112 | + return $this->client->request('delete', $this->endpoint."/refresh-tokens/{$token}"); |
|
| 113 | + } |
|
| 114 | 114 | |
| 115 | 115 | } |
@@ -172,8 +172,8 @@ |
||
| 172 | 172 | $endpoint = "https://api.hubapi.com/contacts/v1/lists/{$list_id}/add"; |
| 173 | 173 | |
| 174 | 174 | $options['json'] = [ |
| 175 | - 'vids' => $contact_ids, |
|
| 176 | - 'emails' => $emails, |
|
| 175 | + 'vids' => $contact_ids, |
|
| 176 | + 'emails' => $emails, |
|
| 177 | 177 | ]; |
| 178 | 178 | |
| 179 | 179 | return $this->client->request('post', $endpoint, $options); |
@@ -102,13 +102,13 @@ |
||
| 102 | 102 | return $this->client->request('get', $endpoint); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - /** |
|
| 106 | - * Clone the page. |
|
| 107 | - * |
|
| 108 | - * @param int $page_id The page ID |
|
| 109 | - * @param string $name The cloned page name |
|
| 110 | - * @return \SevenShores\Hubspot\Http\Response |
|
| 111 | - */ |
|
| 105 | + /** |
|
| 106 | + * Clone the page. |
|
| 107 | + * |
|
| 108 | + * @param int $page_id The page ID |
|
| 109 | + * @param string $name The cloned page name |
|
| 110 | + * @return \SevenShores\Hubspot\Http\Response |
|
| 111 | + */ |
|
| 112 | 112 | function clonePage($page_id, $name) |
| 113 | 113 | { |
| 114 | 114 | $endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}/clone"; |
@@ -5,11 +5,10 @@ discard block |
||
| 5 | 5 | class CrmAssociations extends Resource |
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | - * @param array $ticket Array of deal properties. |
|
| 9 | 8 | * |
| 10 | 9 | * @throws \SevenShores\Hubspot\Exceptions\BadRequest |
| 11 | 10 | * |
| 12 | - * @return mixed |
|
| 11 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 13 | 12 | */ |
| 14 | 13 | public function create(array $data) |
| 15 | 14 | { |
@@ -21,10 +20,8 @@ discard block |
||
| 21 | 20 | } |
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | - * @param int $id The deal id. |
|
| 25 | - * @param array $ticket The deal properties to update. |
|
| 26 | 23 | * |
| 27 | - * @return mixed |
|
| 24 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 28 | 25 | */ |
| 29 | 26 | public function delete(array $data) |
| 30 | 27 | { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @throws \SevenShores\Hubspot\Exceptions\BadRequest |
| 11 | 11 | * |
| 12 | - * @return mixed |
|
| 12 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 13 | 13 | */ |
| 14 | 14 | public function create(array $ticket) |
| 15 | 15 | { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * @param int $id The deal id. |
| 25 | 25 | * @param array $ticket The deal properties to update. |
| 26 | 26 | * |
| 27 | - * @return mixed |
|
| 27 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 28 | 28 | */ |
| 29 | 29 | public function update($id, array $ticket) |
| 30 | 30 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * @param int $id |
| 56 | 56 | * |
| 57 | - * @return mixed |
|
| 57 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 58 | 58 | */ |
| 59 | 59 | public function delete($id) |
| 60 | 60 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * @param int $id |
| 68 | 68 | * |
| 69 | - * @return mixed |
|
| 69 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 70 | 70 | */ |
| 71 | 71 | public function getById($id) |
| 72 | 72 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * @param array $params Optional parameters ['timestamp', 'changeType', 'objectId'] |
| 80 | 80 | * |
| 81 | - * @return mixed |
|
| 81 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 82 | 82 | */ |
| 83 | 83 | public function getChangelog(array $params = []) |
| 84 | 84 | { |