{"action":"created","comment":{"url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/comments/89967553","pull_request_review_id":10493713,"id":89967553,"diff_hunk":"@@ -0,0 +1,61 @@\n+<?php\n+\n+\n+namespace eLife\\ApiSdk\\Serializer;\n+\n+\n+use eLife\\ApiSdk\\Model\\ExternalArticle;\n+use eLife\\ApiSdk\\Model\\Place;\n+use Symfony\\Component\\Serializer\\Normalizer\\DenormalizerAwareInterface;\n+use Symfony\\Component\\Serializer\\Normalizer\\DenormalizerAwareTrait;\n+use Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareInterface;\n+use Symfony\\Component\\Serializer\\Normalizer\\NormalizerAwareTrait;\n+use Symfony\\Component\\Serializer\\Normalizer\\DenormalizerInterface;\n+use Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface;\n+\n+final class ExternalArticleNormalizer implements NormalizerInterface, DenormalizerInterface, NormalizerAwareInterface, DenormalizerAwareInterface\n+{\n+\n+    use NormalizerAwareTrait;\n+    use DenormalizerAwareTrait;\n+\n+    public function denormalize($data, $class, $format = null, array $context = []) : ExternalArticle\n+    {\n+        return new ExternalArticle(\n+            $data['articleTitle'],\n+            $this->denormalizeJournal($data, $format, $context),\n+            $data['authorLine'],\n+            $data['uri']\n+        );\n+    }\n+\n+    public function supportsDenormalization($data, $type, $format = null)\n+    {\n+        return ExternalArticle::class === $type;","path":"src/Serializer/ExternalArticleNormalizer.php","position":34,"original_position":34,"commit_id":"73cbbb03dd585beeb71c91895a1f8a7b5ace8a06","original_commit_id":"73cbbb03dd585beeb71c91895a1f8a7b5ace8a06","user":{"login":"thewilkybarkid","id":1784740,"avatar_url":"https://avatars.githubusercontent.com/u/1784740?v=3","gravatar_id":"","url":"https://api.github.com/users/thewilkybarkid","html_url":"https://github.com/thewilkybarkid","followers_url":"https://api.github.com/users/thewilkybarkid/followers","following_url":"https://api.github.com/users/thewilkybarkid/following{/other_user}","gists_url":"https://api.github.com/users/thewilkybarkid/gists{/gist_id}","starred_url":"https://api.github.com/users/thewilkybarkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewilkybarkid/subscriptions","organizations_url":"https://api.github.com/users/thewilkybarkid/orgs","repos_url":"https://api.github.com/users/thewilkybarkid/repos","events_url":"https://api.github.com/users/thewilkybarkid/events{/privacy}","received_events_url":"https://api.github.com/users/thewilkybarkid/received_events","type":"User","site_admin":false},"body":"Should also take `Article::class === $type && 'external' === $data['type']`.","created_at":"2016-11-29T09:18:13Z","updated_at":"2016-11-29T09:18:13Z","html_url":"https://github.com/elifesciences/api-sdk-php/pull/73#discussion_r89967553","pull_request_url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/comments/89967553"},"html":{"href":"https://github.com/elifesciences/api-sdk-php/pull/73#discussion_r89967553"},"pull_request":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73","id":95467668,"html_url":"https://github.com/elifesciences/api-sdk-php/pull/73","diff_url":"https://github.com/elifesciences/api-sdk-php/pull/73.diff","patch_url":"https://github.com/elifesciences/api-sdk-php/pull/73.patch","issue_url":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/73","number":73,"state":"open","locked":false,"title":"ELPP-1824 First pass","user":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars.githubusercontent.com/u/8266711?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"body":"Hi @thewilkybarkid \r\n\r\nThis is the first pass of the functionality for the related articles.","created_at":"2016-11-28T09:58:55Z","updated_at":"2016-11-29T09:18:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd60aab53a7a946e13f6bfa24be685fe4b16af4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73/commits","review_comments_url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73/comments","review_comment_url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/73/comments","statuses_url":"https://api.github.com/repos/elifesciences/api-sdk-php/statuses/73cbbb03dd585beeb71c91895a1f8a7b5ace8a06","head":{"label":"stephenwf:feature/ELPP-1824","ref":"feature/ELPP-1824","sha":"73cbbb03dd585beeb71c91895a1f8a7b5ace8a06","user":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars.githubusercontent.com/u/8266711?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"repo":{"id":69254189,"name":"api-sdk-php","full_name":"stephenwf/api-sdk-php","owner":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars.githubusercontent.com/u/8266711?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenwf/api-sdk-php","description":"PHP SDK for the eLife Sciences API [in development]","fork":true,"url":"https://api.github.com/repos/stephenwf/api-sdk-php","forks_url":"https://api.github.com/repos/stephenwf/api-sdk-php/forks","keys_url":"https://api.github.com/repos/stephenwf/api-sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenwf/api-sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenwf/api-sdk-php/teams","hooks_url":"https://api.github.com/repos/stephenwf/api-sdk-php/hooks","issue_events_url":"https://api.github.com/repos/stephenwf/api-sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/stephenwf/api-sdk-php/events","assignees_url":"https://api.github.com/repos/stephenwf/api-sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/stephenwf/api-sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/stephenwf/api-sdk-php/tags","blobs_url":"https://api.github.com/repos/stephenwf/api-sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenwf/api-sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenwf/api-sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenwf/api-sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenwf/api-sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenwf/api-sdk-php/languages","stargazers_url":"https://api.github.com/repos/stephenwf/api-sdk-php/stargazers","contributors_url":"https://api.github.com/repos/stephenwf/api-sdk-php/contributors","subscribers_url":"https://api.github.com/repos/stephenwf/api-sdk-php/subscribers","subscription_url":"https://api.github.com/repos/stephenwf/api-sdk-php/subscription","commits_url":"https://api.github.com/repos/stephenwf/api-sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenwf/api-sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenwf/api-sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenwf/api-sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenwf/api-sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/stephenwf/api-sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenwf/api-sdk-php/merges","archive_url":"https://api.github.com/repos/stephenwf/api-sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenwf/api-sdk-php/downloads","issues_url":"https://api.github.com/repos/stephenwf/api-sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/stephenwf/api-sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenwf/api-sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenwf/api-sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenwf/api-sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/stephenwf/api-sdk-php/releases{/id}","deployments_url":"https://api.github.com/repos/stephenwf/api-sdk-php/deployments","created_at":"2016-09-26T13:43:34Z","updated_at":"2016-09-26T13:43:36Z","pushed_at":"2016-11-28T10:04:06Z","git_url":"git://github.com/stephenwf/api-sdk-php.git","ssh_url":"git@github.com:stephenwf/api-sdk-php.git","clone_url":"https://github.com/stephenwf/api-sdk-php.git","svn_url":"https://github.com/stephenwf/api-sdk-php","homepage":null,"size":522,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elifesciences:master","ref":"master","sha":"942b0e1c07c08e9d0b17cc3fadee392cb1549961","user":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":67200839,"name":"api-sdk-php","full_name":"elifesciences/api-sdk-php","owner":{"login":"elifesciences","id":1777367,"avatar_url":"https://avatars.githubusercontent.com/u/1777367?v=3","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elifesciences/api-sdk-php","description":"PHP SDK for the eLife Sciences API [in development]","fork":false,"url":"https://api.github.com/repos/elifesciences/api-sdk-php","forks_url":"https://api.github.com/repos/elifesciences/api-sdk-php/forks","keys_url":"https://api.github.com/repos/elifesciences/api-sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/api-sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/api-sdk-php/teams","hooks_url":"https://api.github.com/repos/elifesciences/api-sdk-php/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/api-sdk-php/events","assignees_url":"https://api.github.com/repos/elifesciences/api-sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/api-sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/api-sdk-php/tags","blobs_url":"https://api.github.com/repos/elifesciences/api-sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/api-sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/api-sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/api-sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/api-sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/api-sdk-php/languages","stargazers_url":"https://api.github.com/repos/elifesciences/api-sdk-php/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/api-sdk-php/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/api-sdk-php/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/api-sdk-php/subscription","commits_url":"https://api.github.com/repos/elifesciences/api-sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/api-sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/api-sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/api-sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/api-sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/api-sdk-php/merges","archive_url":"https://api.github.com/repos/elifesciences/api-sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/api-sdk-php/downloads","issues_url":"https://api.github.com/repos/elifesciences/api-sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/api-sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/api-sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/api-sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/api-sdk-php/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/api-sdk-php/deployments","created_at":"2016-09-02T07:30:40Z","updated_at":"2016-10-24T14:48:24Z","pushed_at":"2016-11-29T07:58:12Z","git_url":"git://github.com/elifesciences/api-sdk-php.git","ssh_url":"git@github.com:elifesciences/api-sdk-php.git","clone_url":"https://github.com/elifesciences/api-sdk-php.git","svn_url":"https://github.com/elifesciences/api-sdk-php","homepage":null,"size":813,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73"},"html":{"href":"https://github.com/elifesciences/api-sdk-php/pull/73"},"issue":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/73"},"comments":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/elifesciences/api-sdk-php/statuses/73cbbb03dd585beeb71c91895a1f8a7b5ace8a06"}}}}
{"actor":{"display_login":"thewilkybarkid"}}