@@ -6,8 +6,7 @@ discard block |
||
| 6 | 6 | class CrmAssociations extends Resource |
| 7 | 7 | { |
| 8 | 8 | /** |
| 9 | - * @param array $ticket Array of deal properties. |
|
| 10 | - * @return mixed |
|
| 9 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 11 | 10 | * @throws \SevenShores\Hubspot\Exceptions\BadRequest |
| 12 | 11 | */ |
| 13 | 12 | function create(array $data) |
@@ -20,9 +19,7 @@ discard block |
||
| 20 | 19 | } |
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | - * @param int $id The deal id. |
|
| 24 | - * @param array $ticket The deal properties to update. |
|
| 25 | - * @return mixed |
|
| 22 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 26 | 23 | */ |
| 27 | 24 | function delete(array $data) |
| 28 | 25 | { |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace SevenShores\Hubspot\Resources; |
| 3 | 3 | |
| 4 | -use SevenShores\Hubspot\Exceptions\HubspotException; |
|
| 5 | - |
|
| 6 | 4 | class CrmAssociations extends Resource |
| 7 | 5 | { |
| 8 | 6 | /** |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | /** |
| 9 | 9 | * @param array $ticket Array of deal properties. |
| 10 | - * @return mixed |
|
| 10 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 11 | 11 | * @throws \SevenShores\Hubspot\Exceptions\BadRequest |
| 12 | 12 | */ |
| 13 | 13 | function create(array $ticket) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @param int $id The deal id. |
| 24 | 24 | * @param array $ticket The deal properties to update. |
| 25 | - * @return mixed |
|
| 25 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 26 | 26 | */ |
| 27 | 27 | function update($id, array $ticket) |
| 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 int $id |
| 64 | - * @return mixed |
|
| 64 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 65 | 65 | */ |
| 66 | 66 | function getById($id) |
| 67 | 67 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * @param array $params Optional parameters ['timestamp', 'changeType', 'objectId'] |
| 75 | - * @return mixed |
|
| 75 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 76 | 76 | */ |
| 77 | 77 | function getChangelog(array $params = []) |
| 78 | 78 | { |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace SevenShores\Hubspot\Resources; |
| 3 | 3 | |
| 4 | -use SevenShores\Hubspot\Exceptions\HubspotException; |
|
| 5 | - |
|
| 6 | 4 | class Tickets extends Resource |
| 7 | 5 | { |
| 8 | 6 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * @return \Psr\Http\Message\ResponseInterface|\SevenShores\Hubspot\Http\Response |
| 40 | 40 | * @throws \SevenShores\Hubspot\Exceptions\BadRequest |
| 41 | 41 | */ |
| 42 | - function getAll(array $params = []){ |
|
| 42 | + function getAll(array $params = []) { |
|
| 43 | 43 | $endpoint = "https://api.hubapi.com/crm-objects/v1/objects/tickets/paged"; |
| 44 | 44 | |
| 45 | 45 | $queryString = build_query_string($params); |