{"action":"created","comment":{"url":"https://api.github.com/repos/equip/command/pulls/comments/65803178","id":65803178,"diff_hunk":"@@ -0,0 +1,129 @@\n+<?php\n+\n+namespace Equip\\Command;\n+\n+/**\n+ * A general purpose value object for command options.\n+ *\n+ * When constructed, all required options must be passed.\n+ *\n+ * @since 1.3.0\n+ */\n+abstract class Options","path":"src/Options.php","position":12,"original_position":12,"commit_id":"37ba6d0a4a803637a8c7446283dc940955ed3641","original_commit_id":"37ba6d0a4a803637a8c7446283dc940955ed3641","user":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"body":"No, because options cannot be modified after construction.","created_at":"2016-06-04T14:26:39Z","updated_at":"2016-06-04T14:26:39Z","html_url":"https://github.com/equip/command/pull/6#discussion_r65803178","pull_request_url":"https://api.github.com/repos/equip/command/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/equip/command/pulls/comments/65803178"},"html":{"href":"https://github.com/equip/command/pull/6#discussion_r65803178"},"pull_request":{"href":"https://api.github.com/repos/equip/command/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/equip/command/pulls/6","id":65321759,"html_url":"https://github.com/equip/command/pull/6","diff_url":"https://github.com/equip/command/pull/6.diff","patch_url":"https://github.com/equip/command/pull/6.patch","issue_url":"https://api.github.com/repos/equip/command/issues/6","number":6,"state":"open","locked":false,"title":"Separate command and options","user":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"body":"Having separate value objects for options makes it easier to understand\r\nwhat options are available to a command and simplifies the validation\r\nprocess.\r\n\r\nThis change was implemented as separate classes so that usage can be\r\nupgraded incrementally and version 2.0 can remove the deprecated things.","created_at":"2016-04-05T15:10:32Z","updated_at":"2016-06-04T14:26:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d72b0ef518d9da8ef9373f6edcf7cdc7fb43993","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/equip/command/pulls/6/commits","review_comments_url":"https://api.github.com/repos/equip/command/pulls/6/comments","review_comment_url":"https://api.github.com/repos/equip/command/pulls/comments{/number}","comments_url":"https://api.github.com/repos/equip/command/issues/6/comments","statuses_url":"https://api.github.com/repos/equip/command/statuses/37ba6d0a4a803637a8c7446283dc940955ed3641","head":{"label":"equip:feature/value-object-options","ref":"feature/value-object-options","sha":"37ba6d0a4a803637a8c7446283dc940955ed3641","user":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"repo":{"id":49070483,"name":"command","full_name":"equip/command","owner":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/equip/command","description":"Interfaces and traits for creating a command layer","fork":false,"url":"https://api.github.com/repos/equip/command","forks_url":"https://api.github.com/repos/equip/command/forks","keys_url":"https://api.github.com/repos/equip/command/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equip/command/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equip/command/teams","hooks_url":"https://api.github.com/repos/equip/command/hooks","issue_events_url":"https://api.github.com/repos/equip/command/issues/events{/number}","events_url":"https://api.github.com/repos/equip/command/events","assignees_url":"https://api.github.com/repos/equip/command/assignees{/user}","branches_url":"https://api.github.com/repos/equip/command/branches{/branch}","tags_url":"https://api.github.com/repos/equip/command/tags","blobs_url":"https://api.github.com/repos/equip/command/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equip/command/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equip/command/git/refs{/sha}","trees_url":"https://api.github.com/repos/equip/command/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equip/command/statuses/{sha}","languages_url":"https://api.github.com/repos/equip/command/languages","stargazers_url":"https://api.github.com/repos/equip/command/stargazers","contributors_url":"https://api.github.com/repos/equip/command/contributors","subscribers_url":"https://api.github.com/repos/equip/command/subscribers","subscription_url":"https://api.github.com/repos/equip/command/subscription","commits_url":"https://api.github.com/repos/equip/command/commits{/sha}","git_commits_url":"https://api.github.com/repos/equip/command/git/commits{/sha}","comments_url":"https://api.github.com/repos/equip/command/comments{/number}","issue_comment_url":"https://api.github.com/repos/equip/command/issues/comments{/number}","contents_url":"https://api.github.com/repos/equip/command/contents/{+path}","compare_url":"https://api.github.com/repos/equip/command/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equip/command/merges","archive_url":"https://api.github.com/repos/equip/command/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equip/command/downloads","issues_url":"https://api.github.com/repos/equip/command/issues{/number}","pulls_url":"https://api.github.com/repos/equip/command/pulls{/number}","milestones_url":"https://api.github.com/repos/equip/command/milestones{/number}","notifications_url":"https://api.github.com/repos/equip/command/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equip/command/labels{/name}","releases_url":"https://api.github.com/repos/equip/command/releases{/id}","deployments_url":"https://api.github.com/repos/equip/command/deployments","created_at":"2016-01-05T14:21:07Z","updated_at":"2016-05-09T20:57:05Z","pushed_at":"2016-06-04T14:21:02Z","git_url":"git://github.com/equip/command.git","ssh_url":"git@github.com:equip/command.git","clone_url":"https://github.com/equip/command.git","svn_url":"https://github.com/equip/command","homepage":null,"size":21,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"equip:master","ref":"master","sha":"241c723c039124a23667a8bcf905fc8636f84e9e","user":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"repo":{"id":49070483,"name":"command","full_name":"equip/command","owner":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/equip/command","description":"Interfaces and traits for creating a command layer","fork":false,"url":"https://api.github.com/repos/equip/command","forks_url":"https://api.github.com/repos/equip/command/forks","keys_url":"https://api.github.com/repos/equip/command/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equip/command/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equip/command/teams","hooks_url":"https://api.github.com/repos/equip/command/hooks","issue_events_url":"https://api.github.com/repos/equip/command/issues/events{/number}","events_url":"https://api.github.com/repos/equip/command/events","assignees_url":"https://api.github.com/repos/equip/command/assignees{/user}","branches_url":"https://api.github.com/repos/equip/command/branches{/branch}","tags_url":"https://api.github.com/repos/equip/command/tags","blobs_url":"https://api.github.com/repos/equip/command/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equip/command/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equip/command/git/refs{/sha}","trees_url":"https://api.github.com/repos/equip/command/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equip/command/statuses/{sha}","languages_url":"https://api.github.com/repos/equip/command/languages","stargazers_url":"https://api.github.com/repos/equip/command/stargazers","contributors_url":"https://api.github.com/repos/equip/command/contributors","subscribers_url":"https://api.github.com/repos/equip/command/subscribers","subscription_url":"https://api.github.com/repos/equip/command/subscription","commits_url":"https://api.github.com/repos/equip/command/commits{/sha}","git_commits_url":"https://api.github.com/repos/equip/command/git/commits{/sha}","comments_url":"https://api.github.com/repos/equip/command/comments{/number}","issue_comment_url":"https://api.github.com/repos/equip/command/issues/comments{/number}","contents_url":"https://api.github.com/repos/equip/command/contents/{+path}","compare_url":"https://api.github.com/repos/equip/command/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equip/command/merges","archive_url":"https://api.github.com/repos/equip/command/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equip/command/downloads","issues_url":"https://api.github.com/repos/equip/command/issues{/number}","pulls_url":"https://api.github.com/repos/equip/command/pulls{/number}","milestones_url":"https://api.github.com/repos/equip/command/milestones{/number}","notifications_url":"https://api.github.com/repos/equip/command/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equip/command/labels{/name}","releases_url":"https://api.github.com/repos/equip/command/releases{/id}","deployments_url":"https://api.github.com/repos/equip/command/deployments","created_at":"2016-01-05T14:21:07Z","updated_at":"2016-05-09T20:57:05Z","pushed_at":"2016-06-04T14:21:02Z","git_url":"git://github.com/equip/command.git","ssh_url":"git@github.com:equip/command.git","clone_url":"https://github.com/equip/command.git","svn_url":"https://github.com/equip/command","homepage":null,"size":21,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/equip/command/pulls/6"},"html":{"href":"https://github.com/equip/command/pull/6"},"issue":{"href":"https://api.github.com/repos/equip/command/issues/6"},"comments":{"href":"https://api.github.com/repos/equip/command/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/equip/command/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/equip/command/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/equip/command/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/equip/command/statuses/37ba6d0a4a803637a8c7446283dc940955ed3641"}}}}
{"actor":{"display_login":"shadowhand"}}