{"action":"created","comment":{"url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/comments/24300320","id":24300320,"diff_hunk":"@@ -0,0 +1,29 @@\n+<?php\n+\n+namespace LonelyPullRequests\\Domain;\n+\n+use Assert\\Assertion as Ensure;\n+\n+final class PullRequests implements \\IteratorAggregate\n+{\n+    private $pullRequests = [];\n+\n+    public function __construct(array $pullRequests = [])\n+    {\n+        Ensure::allIsInstanceOf($pullRequests, PullRequest::class);\n+\n+        foreach ($pullRequests as $pullRequest) {\n+            $this->add($pullRequest);\n+        }\n+    }\n+\n+    public function add(PullRequest $pullRequest)\n+    {\n+        $this->pullRequests[] = $pullRequest;\n+    }\n+\n+    public function getIterator()","path":"src/Domain/PullRequests.php","position":25,"original_position":25,"commit_id":"6ba9e20879b07488d7d50c630528cc20e237730e","original_commit_id":"6ba9e20879b07488d7d50c630528cc20e237730e","user":{"login":"dennisdegreef","id":361905,"avatar_url":"https://avatars.githubusercontent.com/u/361905?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisdegreef","html_url":"https://github.com/dennisdegreef","followers_url":"https://api.github.com/users/dennisdegreef/followers","following_url":"https://api.github.com/users/dennisdegreef/following{/other_user}","gists_url":"https://api.github.com/users/dennisdegreef/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisdegreef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisdegreef/subscriptions","organizations_url":"https://api.github.com/users/dennisdegreef/orgs","repos_url":"https://api.github.com/users/dennisdegreef/repos","events_url":"https://api.github.com/users/dennisdegreef/events{/privacy}","received_events_url":"https://api.github.com/users/dennisdegreef/received_events","type":"User","site_admin":false},"body":"Docblocks? :)","created_at":"2015-02-08T17:31:39Z","updated_at":"2015-02-08T17:31:39Z","html_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8#discussion_r24300320","pull_request_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/comments/24300320"},"html":{"href":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8#discussion_r24300320"},"pull_request":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8","id":28881605,"html_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8","diff_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8.diff","patch_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8.patch","issue_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/8","number":8,"state":"open","locked":false,"title":"Add basic domain model and initial view","user":{"login":"fvdb","id":25526,"avatar_url":"https://avatars.githubusercontent.com/u/25526?v=3","gravatar_id":"","url":"https://api.github.com/users/fvdb","html_url":"https://github.com/fvdb","followers_url":"https://api.github.com/users/fvdb/followers","following_url":"https://api.github.com/users/fvdb/following{/other_user}","gists_url":"https://api.github.com/users/fvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/fvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvdb/subscriptions","organizations_url":"https://api.github.com/users/fvdb/orgs","repos_url":"https://api.github.com/users/fvdb/repos","events_url":"https://api.github.com/users/fvdb/events{/privacy}","received_events_url":"https://api.github.com/users/fvdb/received_events","type":"User","site_admin":false},"body":"This adds a very basic domain model for Pull Requests, and a very minimal view of pull requests.\r\n\r\nIt doesn't actually do anything with storage. The domain defines a PullRequestRepository interface which is implemented by a simple in-memory repository, which is populated in the controller before rendering the page.\r\n\r\nThe page itself only shows the name and \"loneliness\" of the pull request, though I'm not actually sure we would want to display the latter like that. Also a bunch of lorem ipsum. Probably want to take care of that as well, later :)","created_at":"2015-02-08T15:20:28Z","updated_at":"2015-02-08T17:31:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87f02e40fc916671ea4f20eb69aa88a6e99c9cac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8/commits","review_comments_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8/comments","review_comment_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/8/comments","statuses_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/statuses/6ba9e20879b07488d7d50c630528cc20e237730e","head":{"label":"fvdb:basic-setup","ref":"basic-setup","sha":"6ba9e20879b07488d7d50c630528cc20e237730e","user":{"login":"fvdb","id":25526,"avatar_url":"https://avatars.githubusercontent.com/u/25526?v=3","gravatar_id":"","url":"https://api.github.com/users/fvdb","html_url":"https://github.com/fvdb","followers_url":"https://api.github.com/users/fvdb/followers","following_url":"https://api.github.com/users/fvdb/following{/other_user}","gists_url":"https://api.github.com/users/fvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/fvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvdb/subscriptions","organizations_url":"https://api.github.com/users/fvdb/orgs","repos_url":"https://api.github.com/users/fvdb/repos","events_url":"https://api.github.com/users/fvdb/events{/privacy}","received_events_url":"https://api.github.com/users/fvdb/received_events","type":"User","site_admin":false},"repo":{"id":30489093,"name":"lonelypullrequests.com","full_name":"fvdb/lonelypullrequests.com","owner":{"login":"fvdb","id":25526,"avatar_url":"https://avatars.githubusercontent.com/u/25526?v=3","gravatar_id":"","url":"https://api.github.com/users/fvdb","html_url":"https://github.com/fvdb","followers_url":"https://api.github.com/users/fvdb/followers","following_url":"https://api.github.com/users/fvdb/following{/other_user}","gists_url":"https://api.github.com/users/fvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/fvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvdb/subscriptions","organizations_url":"https://api.github.com/users/fvdb/orgs","repos_url":"https://api.github.com/users/fvdb/repos","events_url":"https://api.github.com/users/fvdb/events{/privacy}","received_events_url":"https://api.github.com/users/fvdb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fvdb/lonelypullrequests.com","description":"lonelypullrequests.com","fork":true,"url":"https://api.github.com/repos/fvdb/lonelypullrequests.com","forks_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/forks","keys_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/teams","hooks_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/hooks","issue_events_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/issues/events{/number}","events_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/events","assignees_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/assignees{/user}","branches_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/branches{/branch}","tags_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/tags","blobs_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/statuses/{sha}","languages_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/languages","stargazers_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/stargazers","contributors_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/contributors","subscribers_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/subscribers","subscription_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/subscription","commits_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/contents/{+path}","compare_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/merges","archive_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/downloads","issues_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/issues{/number}","pulls_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/pulls{/number}","milestones_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/milestones{/number}","notifications_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/labels{/name}","releases_url":"https://api.github.com/repos/fvdb/lonelypullrequests.com/releases{/id}","created_at":"2015-02-08T11:31:09Z","updated_at":"2015-02-08T13:51:39Z","pushed_at":"2015-02-08T15:17:57Z","git_url":"git://github.com/fvdb/lonelypullrequests.com.git","ssh_url":"git@github.com:fvdb/lonelypullrequests.com.git","clone_url":"https://github.com/fvdb/lonelypullrequests.com.git","svn_url":"https://github.com/fvdb/lonelypullrequests.com","homepage":null,"size":300,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"LonelyPullRequestsHQ:master","ref":"master","sha":"cf86f84f6174804f27a8f8f0df5f1d80b7b4856c","user":{"login":"LonelyPullRequestsHQ","id":10907514,"avatar_url":"https://avatars.githubusercontent.com/u/10907514?v=3","gravatar_id":"","url":"https://api.github.com/users/LonelyPullRequestsHQ","html_url":"https://github.com/LonelyPullRequestsHQ","followers_url":"https://api.github.com/users/LonelyPullRequestsHQ/followers","following_url":"https://api.github.com/users/LonelyPullRequestsHQ/following{/other_user}","gists_url":"https://api.github.com/users/LonelyPullRequestsHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LonelyPullRequestsHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LonelyPullRequestsHQ/subscriptions","organizations_url":"https://api.github.com/users/LonelyPullRequestsHQ/orgs","repos_url":"https://api.github.com/users/LonelyPullRequestsHQ/repos","events_url":"https://api.github.com/users/LonelyPullRequestsHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LonelyPullRequestsHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":30046439,"name":"lonelypullrequests.com","full_name":"LonelyPullRequestsHQ/lonelypullrequests.com","owner":{"login":"LonelyPullRequestsHQ","id":10907514,"avatar_url":"https://avatars.githubusercontent.com/u/10907514?v=3","gravatar_id":"","url":"https://api.github.com/users/LonelyPullRequestsHQ","html_url":"https://github.com/LonelyPullRequestsHQ","followers_url":"https://api.github.com/users/LonelyPullRequestsHQ/followers","following_url":"https://api.github.com/users/LonelyPullRequestsHQ/following{/other_user}","gists_url":"https://api.github.com/users/LonelyPullRequestsHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LonelyPullRequestsHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LonelyPullRequestsHQ/subscriptions","organizations_url":"https://api.github.com/users/LonelyPullRequestsHQ/orgs","repos_url":"https://api.github.com/users/LonelyPullRequestsHQ/repos","events_url":"https://api.github.com/users/LonelyPullRequestsHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LonelyPullRequestsHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com","description":"lonelypullrequests.com","fork":false,"url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com","forks_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/forks","keys_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/teams","hooks_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/hooks","issue_events_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/events{/number}","events_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/events","assignees_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/assignees{/user}","branches_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/branches{/branch}","tags_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/tags","blobs_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/statuses/{sha}","languages_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/languages","stargazers_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/stargazers","contributors_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/contributors","subscribers_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/subscribers","subscription_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/subscription","commits_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/comments/{number}","contents_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/contents/{+path}","compare_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/merges","archive_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/downloads","issues_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues{/number}","pulls_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls{/number}","milestones_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/milestones{/number}","notifications_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/labels{/name}","releases_url":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/releases{/id}","created_at":"2015-01-29T23:25:14Z","updated_at":"2015-02-08T14:52:21Z","pushed_at":"2015-02-08T13:51:07Z","git_url":"git://github.com/LonelyPullRequestsHQ/lonelypullrequests.com.git","ssh_url":"git@github.com:LonelyPullRequestsHQ/lonelypullrequests.com.git","clone_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com.git","svn_url":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com","homepage":null,"size":300,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8"},"html":{"href":"https://github.com/LonelyPullRequestsHQ/lonelypullrequests.com/pull/8"},"issue":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/8"},"comments":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/LonelyPullRequestsHQ/lonelypullrequests.com/statuses/6ba9e20879b07488d7d50c630528cc20e237730e"}}}}