{"action":"created","comment":{"url":"https://api.github.com/repos/dofinity/activetrail/pulls/comments/148004941","pull_request_review_id":73178052,"id":148004941,"diff_hunk":"@@ -28,22 +28,35 @@ class EmailCampaign extends CampaignBase implements EmailCampaignInterface {\n \n   /**\n    * EmailCampaign constructor.\n-   * @param $apiToken\n+   *\n+   * @param $api_token\n    */\n-  public function __construct($apiToken) {\n-    parent::__construct($apiToken, EndPoints::$CAMPAIGNS_CONTACTS);\n+  public function __construct($api_token) {\n+    parent::__construct($api_token, EndPoints::$CAMPAIGNS_CONTACTS);\n     // Initialize payload structure\n     $updateContainer = new ApiCampaignUpdateContainer('', new ApiCampaignDetails(), new ApiCampaignDesign(),\n       new ApiCampaignTemplate(), new ApiABSettings(), new ApiEcommerceDataList(), []);\n     $this->campaignPayload = new ApiCampaignContactPost($updateContainer, new ApiCampaignContact());\n   }\n \n-  public function setSubject ($subject) {\n+  /**\n+   * Sets the email's subject.\n+   * @param $subject\n+   *\n+   * @return $this\n+   */\n+  public function setSubject($subject) {\n     $this->getDetails()->subject = $subject;\n     return $this;\n   }\n \n-  public function setPreHeader ($preHeader) {\n+  /**\n+   * Sets the email's preheader.\n+   * @param $preHeader\n+   *\n+   * @return $this\n+   */\n+  public function setPreHeader($preHeader) {","path":"src/ActiveTrail/Campaign/EmailCampaign.php","position":37,"original_position":37,"commit_id":"9bd39092bb70654a2b1f8a4100f6f31c0e3bf17d","original_commit_id":"9bd39092bb70654a2b1f8a4100f6f31c0e3bf17d","user":{"login":"eyaldofinity","id":8960637,"avatar_url":"https://avatars2.githubusercontent.com/u/8960637?v=4","gravatar_id":"","url":"https://api.github.com/users/eyaldofinity","html_url":"https://github.com/eyaldofinity","followers_url":"https://api.github.com/users/eyaldofinity/followers","following_url":"https://api.github.com/users/eyaldofinity/following{/other_user}","gists_url":"https://api.github.com/users/eyaldofinity/gists{/gist_id}","starred_url":"https://api.github.com/users/eyaldofinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyaldofinity/subscriptions","organizations_url":"https://api.github.com/users/eyaldofinity/orgs","repos_url":"https://api.github.com/users/eyaldofinity/repos","events_url":"https://api.github.com/users/eyaldofinity/events{/privacy}","received_events_url":"https://api.github.com/users/eyaldofinity/received_events","type":"User","site_admin":false},"body":"see comments of `setSubject`","created_at":"2017-10-31T14:04:02Z","updated_at":"2017-10-31T14:49:04Z","html_url":"https://github.com/dofinity/activetrail/pull/2#discussion_r148004941","pull_request_url":"https://api.github.com/repos/dofinity/activetrail/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/comments/148004941"},"html":{"href":"https://github.com/dofinity/activetrail/pull/2#discussion_r148004941"},"pull_request":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dofinity/activetrail/pulls/2","id":149792302,"html_url":"https://github.com/dofinity/activetrail/pull/2","diff_url":"https://github.com/dofinity/activetrail/pull/2.diff","patch_url":"https://github.com/dofinity/activetrail/pull/2.patch","issue_url":"https://api.github.com/repos/dofinity/activetrail/issues/2","number":2,"state":"open","locked":false,"title":"Documentation fixes, and add support in groups/:id/members endpoint","user":{"login":"reissr","id":6906341,"avatar_url":"https://avatars2.githubusercontent.com/u/6906341?v=4","gravatar_id":"","url":"https://api.github.com/users/reissr","html_url":"https://github.com/reissr","followers_url":"https://api.github.com/users/reissr/followers","following_url":"https://api.github.com/users/reissr/following{/other_user}","gists_url":"https://api.github.com/users/reissr/gists{/gist_id}","starred_url":"https://api.github.com/users/reissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reissr/subscriptions","organizations_url":"https://api.github.com/users/reissr/orgs","repos_url":"https://api.github.com/users/reissr/repos","events_url":"https://api.github.com/users/reissr/events{/privacy}","received_events_url":"https://api.github.com/users/reissr/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-31T13:56:09Z","updated_at":"2017-10-31T14:49:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"727ffa44025a465391faaf7e06bc7dd490810c66","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/dofinity/activetrail/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dofinity/activetrail/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dofinity/activetrail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dofinity/activetrail/issues/2/comments","statuses_url":"https://api.github.com/repos/dofinity/activetrail/statuses/9bd39092bb70654a2b1f8a4100f6f31c0e3bf17d","head":{"label":"reissr:master","ref":"master","sha":"9bd39092bb70654a2b1f8a4100f6f31c0e3bf17d","user":{"login":"reissr","id":6906341,"avatar_url":"https://avatars2.githubusercontent.com/u/6906341?v=4","gravatar_id":"","url":"https://api.github.com/users/reissr","html_url":"https://github.com/reissr","followers_url":"https://api.github.com/users/reissr/followers","following_url":"https://api.github.com/users/reissr/following{/other_user}","gists_url":"https://api.github.com/users/reissr/gists{/gist_id}","starred_url":"https://api.github.com/users/reissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reissr/subscriptions","organizations_url":"https://api.github.com/users/reissr/orgs","repos_url":"https://api.github.com/users/reissr/repos","events_url":"https://api.github.com/users/reissr/events{/privacy}","received_events_url":"https://api.github.com/users/reissr/received_events","type":"User","site_admin":false},"repo":{"id":101262158,"name":"activetrail","full_name":"reissr/activetrail","owner":{"login":"reissr","id":6906341,"avatar_url":"https://avatars2.githubusercontent.com/u/6906341?v=4","gravatar_id":"","url":"https://api.github.com/users/reissr","html_url":"https://github.com/reissr","followers_url":"https://api.github.com/users/reissr/followers","following_url":"https://api.github.com/users/reissr/following{/other_user}","gists_url":"https://api.github.com/users/reissr/gists{/gist_id}","starred_url":"https://api.github.com/users/reissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reissr/subscriptions","organizations_url":"https://api.github.com/users/reissr/orgs","repos_url":"https://api.github.com/users/reissr/repos","events_url":"https://api.github.com/users/reissr/events{/privacy}","received_events_url":"https://api.github.com/users/reissr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reissr/activetrail","description":"PHP Library for integrating the ActiveTrail marketing platform","fork":true,"url":"https://api.github.com/repos/reissr/activetrail","forks_url":"https://api.github.com/repos/reissr/activetrail/forks","keys_url":"https://api.github.com/repos/reissr/activetrail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reissr/activetrail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reissr/activetrail/teams","hooks_url":"https://api.github.com/repos/reissr/activetrail/hooks","issue_events_url":"https://api.github.com/repos/reissr/activetrail/issues/events{/number}","events_url":"https://api.github.com/repos/reissr/activetrail/events","assignees_url":"https://api.github.com/repos/reissr/activetrail/assignees{/user}","branches_url":"https://api.github.com/repos/reissr/activetrail/branches{/branch}","tags_url":"https://api.github.com/repos/reissr/activetrail/tags","blobs_url":"https://api.github.com/repos/reissr/activetrail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reissr/activetrail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reissr/activetrail/git/refs{/sha}","trees_url":"https://api.github.com/repos/reissr/activetrail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reissr/activetrail/statuses/{sha}","languages_url":"https://api.github.com/repos/reissr/activetrail/languages","stargazers_url":"https://api.github.com/repos/reissr/activetrail/stargazers","contributors_url":"https://api.github.com/repos/reissr/activetrail/contributors","subscribers_url":"https://api.github.com/repos/reissr/activetrail/subscribers","subscription_url":"https://api.github.com/repos/reissr/activetrail/subscription","commits_url":"https://api.github.com/repos/reissr/activetrail/commits{/sha}","git_commits_url":"https://api.github.com/repos/reissr/activetrail/git/commits{/sha}","comments_url":"https://api.github.com/repos/reissr/activetrail/comments{/number}","issue_comment_url":"https://api.github.com/repos/reissr/activetrail/issues/comments{/number}","contents_url":"https://api.github.com/repos/reissr/activetrail/contents/{+path}","compare_url":"https://api.github.com/repos/reissr/activetrail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reissr/activetrail/merges","archive_url":"https://api.github.com/repos/reissr/activetrail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reissr/activetrail/downloads","issues_url":"https://api.github.com/repos/reissr/activetrail/issues{/number}","pulls_url":"https://api.github.com/repos/reissr/activetrail/pulls{/number}","milestones_url":"https://api.github.com/repos/reissr/activetrail/milestones{/number}","notifications_url":"https://api.github.com/repos/reissr/activetrail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reissr/activetrail/labels{/name}","releases_url":"https://api.github.com/repos/reissr/activetrail/releases{/id}","deployments_url":"https://api.github.com/repos/reissr/activetrail/deployments","created_at":"2017-08-24T06:34:49Z","updated_at":"2017-08-24T06:34:50Z","pushed_at":"2017-10-31T13:55:49Z","git_url":"git://github.com/reissr/activetrail.git","ssh_url":"git@github.com:reissr/activetrail.git","clone_url":"https://github.com/reissr/activetrail.git","svn_url":"https://github.com/reissr/activetrail","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dofinity:master","ref":"master","sha":"f0939471bec121b7045f035d5b346ddc7b0e5c93","user":{"login":"dofinity","id":1629714,"avatar_url":"https://avatars2.githubusercontent.com/u/1629714?v=4","gravatar_id":"","url":"https://api.github.com/users/dofinity","html_url":"https://github.com/dofinity","followers_url":"https://api.github.com/users/dofinity/followers","following_url":"https://api.github.com/users/dofinity/following{/other_user}","gists_url":"https://api.github.com/users/dofinity/gists{/gist_id}","starred_url":"https://api.github.com/users/dofinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dofinity/subscriptions","organizations_url":"https://api.github.com/users/dofinity/orgs","repos_url":"https://api.github.com/users/dofinity/repos","events_url":"https://api.github.com/users/dofinity/events{/privacy}","received_events_url":"https://api.github.com/users/dofinity/received_events","type":"User","site_admin":false},"repo":{"id":95470985,"name":"activetrail","full_name":"dofinity/activetrail","owner":{"login":"dofinity","id":1629714,"avatar_url":"https://avatars2.githubusercontent.com/u/1629714?v=4","gravatar_id":"","url":"https://api.github.com/users/dofinity","html_url":"https://github.com/dofinity","followers_url":"https://api.github.com/users/dofinity/followers","following_url":"https://api.github.com/users/dofinity/following{/other_user}","gists_url":"https://api.github.com/users/dofinity/gists{/gist_id}","starred_url":"https://api.github.com/users/dofinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dofinity/subscriptions","organizations_url":"https://api.github.com/users/dofinity/orgs","repos_url":"https://api.github.com/users/dofinity/repos","events_url":"https://api.github.com/users/dofinity/events{/privacy}","received_events_url":"https://api.github.com/users/dofinity/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dofinity/activetrail","description":"PHP Library for integrating the ActiveTrail marketing platform","fork":false,"url":"https://api.github.com/repos/dofinity/activetrail","forks_url":"https://api.github.com/repos/dofinity/activetrail/forks","keys_url":"https://api.github.com/repos/dofinity/activetrail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dofinity/activetrail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dofinity/activetrail/teams","hooks_url":"https://api.github.com/repos/dofinity/activetrail/hooks","issue_events_url":"https://api.github.com/repos/dofinity/activetrail/issues/events{/number}","events_url":"https://api.github.com/repos/dofinity/activetrail/events","assignees_url":"https://api.github.com/repos/dofinity/activetrail/assignees{/user}","branches_url":"https://api.github.com/repos/dofinity/activetrail/branches{/branch}","tags_url":"https://api.github.com/repos/dofinity/activetrail/tags","blobs_url":"https://api.github.com/repos/dofinity/activetrail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dofinity/activetrail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dofinity/activetrail/git/refs{/sha}","trees_url":"https://api.github.com/repos/dofinity/activetrail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dofinity/activetrail/statuses/{sha}","languages_url":"https://api.github.com/repos/dofinity/activetrail/languages","stargazers_url":"https://api.github.com/repos/dofinity/activetrail/stargazers","contributors_url":"https://api.github.com/repos/dofinity/activetrail/contributors","subscribers_url":"https://api.github.com/repos/dofinity/activetrail/subscribers","subscription_url":"https://api.github.com/repos/dofinity/activetrail/subscription","commits_url":"https://api.github.com/repos/dofinity/activetrail/commits{/sha}","git_commits_url":"https://api.github.com/repos/dofinity/activetrail/git/commits{/sha}","comments_url":"https://api.github.com/repos/dofinity/activetrail/comments{/number}","issue_comment_url":"https://api.github.com/repos/dofinity/activetrail/issues/comments{/number}","contents_url":"https://api.github.com/repos/dofinity/activetrail/contents/{+path}","compare_url":"https://api.github.com/repos/dofinity/activetrail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dofinity/activetrail/merges","archive_url":"https://api.github.com/repos/dofinity/activetrail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dofinity/activetrail/downloads","issues_url":"https://api.github.com/repos/dofinity/activetrail/issues{/number}","pulls_url":"https://api.github.com/repos/dofinity/activetrail/pulls{/number}","milestones_url":"https://api.github.com/repos/dofinity/activetrail/milestones{/number}","notifications_url":"https://api.github.com/repos/dofinity/activetrail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dofinity/activetrail/labels{/name}","releases_url":"https://api.github.com/repos/dofinity/activetrail/releases{/id}","deployments_url":"https://api.github.com/repos/dofinity/activetrail/deployments","created_at":"2017-06-26T17:21:35Z","updated_at":"2017-06-26T17:55:29Z","pushed_at":"2017-10-31T13:56:10Z","git_url":"git://github.com/dofinity/activetrail.git","ssh_url":"git@github.com:dofinity/activetrail.git","clone_url":"https://github.com/dofinity/activetrail.git","svn_url":"https://github.com/dofinity/activetrail","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/2"},"html":{"href":"https://github.com/dofinity/activetrail/pull/2"},"issue":{"href":"https://api.github.com/repos/dofinity/activetrail/issues/2"},"comments":{"href":"https://api.github.com/repos/dofinity/activetrail/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dofinity/activetrail/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dofinity/activetrail/statuses/9bd39092bb70654a2b1f8a4100f6f31c0e3bf17d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"eyaldofinity"}}