| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | function send($id, $message = [], $contactProperties = [], $customProperties = []) |
||
|
|
|||
| 19 | { |
||
| 20 | $endpoint = "https://api.hubapi.com/email/public/v1/singleEmail/send"; |
||
| 21 | |||
| 22 | $options['json'] = [ |
||
| 23 | 'emailId' => $id, |
||
| 24 | 'message' => $message, |
||
| 25 | 'contactProperties' => $contactProperties, |
||
| 26 | 'customProperties' => $customProperties |
||
| 27 | ]; |
||
| 28 | |||
| 29 | return $this->client->request('post', $endpoint, $options); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.