{"action":"created","comment":{"url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/comments/35491994","id":35491994,"diff_hunk":"@@ -149,10 +166,11 @@ private function listItems(RestHandler $handler = null, $asSummary = false)\n      * @param $handler\n      * @return \\stdClass\n      */\n-    protected function createCollectionResourceForItems($items, $from, $to, $handler)\n+    protected function createCollectionResourceForItems($items, $from, $to, $count, $handler)\n     {\n         $resource = parent::get($handler);","path":"src/Resources/CollectionRestResource.php","position":90,"original_position":90,"commit_id":"df499b42f271bde8a92ab815ff520f1d685fc6bb","original_commit_id":"df499b42f271bde8a92ab815ff520f1d685fc6bb","user":{"login":"NiallSmyth","id":209378,"avatar_url":"https://avatars.githubusercontent.com/u/209378?v=3","gravatar_id":"","url":"https://api.github.com/users/NiallSmyth","html_url":"https://github.com/NiallSmyth","followers_url":"https://api.github.com/users/NiallSmyth/followers","following_url":"https://api.github.com/users/NiallSmyth/following{/other_user}","gists_url":"https://api.github.com/users/NiallSmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/NiallSmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiallSmyth/subscriptions","organizations_url":"https://api.github.com/users/NiallSmyth/orgs","repos_url":"https://api.github.com/users/NiallSmyth/repos","events_url":"https://api.github.com/users/NiallSmyth/events{/privacy}","received_events_url":"https://api.github.com/users/NiallSmyth/received_events","type":"User","site_admin":false},"body":"Should this call $this->get()? And I don't think the method needs $handler now, since get() doesn't need it.","created_at":"2015-07-26T11:51:53Z","updated_at":"2015-07-26T11:51:53Z","html_url":"https://github.com/RhubarbPHP/Module.RestApi/pull/4#discussion_r35491994","pull_request_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/comments/35491994"},"html":{"href":"https://github.com/RhubarbPHP/Module.RestApi/pull/4#discussion_r35491994"},"pull_request":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4","id":40686718,"html_url":"https://github.com/RhubarbPHP/Module.RestApi/pull/4","diff_url":"https://github.com/RhubarbPHP/Module.RestApi/pull/4.diff","patch_url":"https://github.com/RhubarbPHP/Module.RestApi/pull/4.patch","issue_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/4","number":4,"state":"open","locked":false,"title":"Feature/collections rewrite","user":{"login":"acuthbert","id":408400,"avatar_url":"https://avatars.githubusercontent.com/u/408400?v=3","gravatar_id":"","url":"https://api.github.com/users/acuthbert","html_url":"https://github.com/acuthbert","followers_url":"https://api.github.com/users/acuthbert/followers","following_url":"https://api.github.com/users/acuthbert/following{/other_user}","gists_url":"https://api.github.com/users/acuthbert/gists{/gist_id}","starred_url":"https://api.github.com/users/acuthbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acuthbert/subscriptions","organizations_url":"https://api.github.com/users/acuthbert/orgs","repos_url":"https://api.github.com/users/acuthbert/repos","events_url":"https://api.github.com/users/acuthbert/events{/privacy}","received_events_url":"https://api.github.com/users/acuthbert/received_events","type":"User","site_admin":false},"body":"60% of documentation complete.\r\nRefactoring to support this (as some of the previous work was a bit mad when you described it).\r\n","created_at":"2015-07-23T15:45:52Z","updated_at":"2015-07-26T11:51:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62f6d53b1967179cbaa8f535a22e0c0a61e600c0","assignee":{"login":"NiallSmyth","id":209378,"avatar_url":"https://avatars.githubusercontent.com/u/209378?v=3","gravatar_id":"","url":"https://api.github.com/users/NiallSmyth","html_url":"https://github.com/NiallSmyth","followers_url":"https://api.github.com/users/NiallSmyth/followers","following_url":"https://api.github.com/users/NiallSmyth/following{/other_user}","gists_url":"https://api.github.com/users/NiallSmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/NiallSmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiallSmyth/subscriptions","organizations_url":"https://api.github.com/users/NiallSmyth/orgs","repos_url":"https://api.github.com/users/NiallSmyth/repos","events_url":"https://api.github.com/users/NiallSmyth/events{/privacy}","received_events_url":"https://api.github.com/users/NiallSmyth/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4/commits","review_comments_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4/comments","review_comment_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/4/comments","statuses_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/statuses/df499b42f271bde8a92ab815ff520f1d685fc6bb","head":{"label":"RhubarbPHP:feature/CollectionsRewrite","ref":"feature/CollectionsRewrite","sha":"df499b42f271bde8a92ab815ff520f1d685fc6bb","user":{"login":"RhubarbPHP","id":10641153,"avatar_url":"https://avatars.githubusercontent.com/u/10641153?v=3","gravatar_id":"","url":"https://api.github.com/users/RhubarbPHP","html_url":"https://github.com/RhubarbPHP","followers_url":"https://api.github.com/users/RhubarbPHP/followers","following_url":"https://api.github.com/users/RhubarbPHP/following{/other_user}","gists_url":"https://api.github.com/users/RhubarbPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/RhubarbPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RhubarbPHP/subscriptions","organizations_url":"https://api.github.com/users/RhubarbPHP/orgs","repos_url":"https://api.github.com/users/RhubarbPHP/repos","events_url":"https://api.github.com/users/RhubarbPHP/events{/privacy}","received_events_url":"https://api.github.com/users/RhubarbPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":30559196,"name":"Module.RestApi","full_name":"RhubarbPHP/Module.RestApi","owner":{"login":"RhubarbPHP","id":10641153,"avatar_url":"https://avatars.githubusercontent.com/u/10641153?v=3","gravatar_id":"","url":"https://api.github.com/users/RhubarbPHP","html_url":"https://github.com/RhubarbPHP","followers_url":"https://api.github.com/users/RhubarbPHP/followers","following_url":"https://api.github.com/users/RhubarbPHP/following{/other_user}","gists_url":"https://api.github.com/users/RhubarbPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/RhubarbPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RhubarbPHP/subscriptions","organizations_url":"https://api.github.com/users/RhubarbPHP/orgs","repos_url":"https://api.github.com/users/RhubarbPHP/repos","events_url":"https://api.github.com/users/RhubarbPHP/events{/privacy}","received_events_url":"https://api.github.com/users/RhubarbPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RhubarbPHP/Module.RestApi","description":"A module to provide classes for building ReSTful APIs","fork":false,"url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi","forks_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/forks","keys_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/teams","hooks_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/hooks","issue_events_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/events{/number}","events_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/events","assignees_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/assignees{/user}","branches_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/branches{/branch}","tags_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/tags","blobs_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/refs{/sha}","trees_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/statuses/{sha}","languages_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/languages","stargazers_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/stargazers","contributors_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/contributors","subscribers_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/subscribers","subscription_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/subscription","commits_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/commits{/sha}","git_commits_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/commits{/sha}","comments_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/comments{/number}","issue_comment_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/comments{/number}","contents_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/contents/{+path}","compare_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/merges","archive_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/downloads","issues_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues{/number}","pulls_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls{/number}","milestones_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/milestones{/number}","notifications_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/labels{/name}","releases_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/releases{/id}","created_at":"2015-02-09T21:23:22Z","updated_at":"2015-02-22T23:35:13Z","pushed_at":"2015-07-23T15:45:53Z","git_url":"git://github.com/RhubarbPHP/Module.RestApi.git","ssh_url":"git@github.com:RhubarbPHP/Module.RestApi.git","clone_url":"https://github.com/RhubarbPHP/Module.RestApi.git","svn_url":"https://github.com/RhubarbPHP/Module.RestApi","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"RhubarbPHP:develop","ref":"develop","sha":"eb06a8831139cc4e45e3a30da21c8299387fd6d7","user":{"login":"RhubarbPHP","id":10641153,"avatar_url":"https://avatars.githubusercontent.com/u/10641153?v=3","gravatar_id":"","url":"https://api.github.com/users/RhubarbPHP","html_url":"https://github.com/RhubarbPHP","followers_url":"https://api.github.com/users/RhubarbPHP/followers","following_url":"https://api.github.com/users/RhubarbPHP/following{/other_user}","gists_url":"https://api.github.com/users/RhubarbPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/RhubarbPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RhubarbPHP/subscriptions","organizations_url":"https://api.github.com/users/RhubarbPHP/orgs","repos_url":"https://api.github.com/users/RhubarbPHP/repos","events_url":"https://api.github.com/users/RhubarbPHP/events{/privacy}","received_events_url":"https://api.github.com/users/RhubarbPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":30559196,"name":"Module.RestApi","full_name":"RhubarbPHP/Module.RestApi","owner":{"login":"RhubarbPHP","id":10641153,"avatar_url":"https://avatars.githubusercontent.com/u/10641153?v=3","gravatar_id":"","url":"https://api.github.com/users/RhubarbPHP","html_url":"https://github.com/RhubarbPHP","followers_url":"https://api.github.com/users/RhubarbPHP/followers","following_url":"https://api.github.com/users/RhubarbPHP/following{/other_user}","gists_url":"https://api.github.com/users/RhubarbPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/RhubarbPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RhubarbPHP/subscriptions","organizations_url":"https://api.github.com/users/RhubarbPHP/orgs","repos_url":"https://api.github.com/users/RhubarbPHP/repos","events_url":"https://api.github.com/users/RhubarbPHP/events{/privacy}","received_events_url":"https://api.github.com/users/RhubarbPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RhubarbPHP/Module.RestApi","description":"A module to provide classes for building ReSTful APIs","fork":false,"url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi","forks_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/forks","keys_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/teams","hooks_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/hooks","issue_events_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/events{/number}","events_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/events","assignees_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/assignees{/user}","branches_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/branches{/branch}","tags_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/tags","blobs_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/refs{/sha}","trees_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/statuses/{sha}","languages_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/languages","stargazers_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/stargazers","contributors_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/contributors","subscribers_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/subscribers","subscription_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/subscription","commits_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/commits{/sha}","git_commits_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/git/commits{/sha}","comments_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/comments{/number}","issue_comment_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/comments{/number}","contents_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/contents/{+path}","compare_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/merges","archive_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/downloads","issues_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues{/number}","pulls_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls{/number}","milestones_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/milestones{/number}","notifications_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/labels{/name}","releases_url":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/releases{/id}","created_at":"2015-02-09T21:23:22Z","updated_at":"2015-02-22T23:35:13Z","pushed_at":"2015-07-23T15:45:53Z","git_url":"git://github.com/RhubarbPHP/Module.RestApi.git","ssh_url":"git@github.com:RhubarbPHP/Module.RestApi.git","clone_url":"https://github.com/RhubarbPHP/Module.RestApi.git","svn_url":"https://github.com/RhubarbPHP/Module.RestApi","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4"},"html":{"href":"https://github.com/RhubarbPHP/Module.RestApi/pull/4"},"issue":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/4"},"comments":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/RhubarbPHP/Module.RestApi/statuses/df499b42f271bde8a92ab815ff520f1d685fc6bb"}}}}