{"action":"created","comment":{"url":"https://api.github.com/repos/shrikeh/teapot/pulls/comments/60604313","id":60604313,"diff_hunk":"@@ -0,0 +1,193 @@\n+<?php\n+/**\n+ * Interface representing a Value Object of the HTTP Status-Line, as\n+ * specified in RFC 2616 and RFC 7231.\n+ *\n+ * PHP version 5.3\n+ *\n+ * @category StatusLine\n+ *\n+ * @package Teapot\n+ *\n+ * @author    Barney Hanlon <barney@shrikeh.net>\n+ * @copyright 2013-2016 B Hanlon. All rights reserved.\n+ * @license   MIT http://opensource.org/licenses/MIT\n+ * @link      https://shrikeh.github.com/teapot\n+ */\n+namespace Teapot;\n+\n+use Teapot\\StatusCodeException\\InvalidStatusCodeException;\n+use Psr\\Http\\Message\\ResponseInterface;\n+\n+/**\n+ * Interface representing a Value Object of the HTTP Status-Line, as\n+ * specified in RFC 2616 and RFC 7231.\n+ *\n+ * PHP version 5.3\n+ *\n+ * @category StatusLine\n+ *\n+ * @package Teapot\n+ *\n+ * @author    Barney Hanlon <barney@shrikeh.net>\n+ * @copyright 2013-2016 B Hanlon. All rights reserved.\n+ * @license   MIT http://opensource.org/licenses/MIT\n+ * @link      https://shrikeh.github.com/teapot\n+ */\n+class StatusLine","path":"src/StatusLine.php","position":37,"original_position":37,"commit_id":"19476058291c9a5ff406d4237234e5da2a0059e4","original_commit_id":"1c9ee7cb65cf00ae014cd3677746a0e835138a52","user":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"body":"@localheinz The only problem with moving the constants into StatusCode is that they aren't status codes. Previously if I did any reflection on that interface, every constant I got back would be a status code, hence why I was going to keep them out of there.","created_at":"2016-04-21T15:41:10Z","updated_at":"2016-04-21T15:41:10Z","html_url":"https://github.com/shrikeh/teapot/pull/45#discussion_r60604313","pull_request_url":"https://api.github.com/repos/shrikeh/teapot/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/comments/60604313"},"html":{"href":"https://github.com/shrikeh/teapot/pull/45#discussion_r60604313"},"pull_request":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/shrikeh/teapot/pulls/45","id":67348915,"html_url":"https://github.com/shrikeh/teapot/pull/45","diff_url":"https://github.com/shrikeh/teapot/pull/45.diff","patch_url":"https://github.com/shrikeh/teapot/pull/45.patch","issue_url":"https://api.github.com/repos/shrikeh/teapot/issues/45","number":45,"state":"open","locked":false,"title":"Feature/status line","user":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-21T12:56:04Z","updated_at":"2016-04-21T15:41:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab8b3545ab94c05cb1e652c675f7bf05304d5e1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shrikeh/teapot/pulls/45/commits","review_comments_url":"https://api.github.com/repos/shrikeh/teapot/pulls/45/comments","review_comment_url":"https://api.github.com/repos/shrikeh/teapot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shrikeh/teapot/issues/45/comments","statuses_url":"https://api.github.com/repos/shrikeh/teapot/statuses/19476058291c9a5ff406d4237234e5da2a0059e4","head":{"label":"shrikeh:feature/StatusLine","ref":"feature/StatusLine","sha":"19476058291c9a5ff406d4237234e5da2a0059e4","user":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"repo":{"id":9038504,"name":"teapot","full_name":"shrikeh/teapot","owner":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shrikeh/teapot","description":"Simple PHP library to improve verbosity in HTTP response codes","fork":false,"url":"https://api.github.com/repos/shrikeh/teapot","forks_url":"https://api.github.com/repos/shrikeh/teapot/forks","keys_url":"https://api.github.com/repos/shrikeh/teapot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shrikeh/teapot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shrikeh/teapot/teams","hooks_url":"https://api.github.com/repos/shrikeh/teapot/hooks","issue_events_url":"https://api.github.com/repos/shrikeh/teapot/issues/events{/number}","events_url":"https://api.github.com/repos/shrikeh/teapot/events","assignees_url":"https://api.github.com/repos/shrikeh/teapot/assignees{/user}","branches_url":"https://api.github.com/repos/shrikeh/teapot/branches{/branch}","tags_url":"https://api.github.com/repos/shrikeh/teapot/tags","blobs_url":"https://api.github.com/repos/shrikeh/teapot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shrikeh/teapot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shrikeh/teapot/git/refs{/sha}","trees_url":"https://api.github.com/repos/shrikeh/teapot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shrikeh/teapot/statuses/{sha}","languages_url":"https://api.github.com/repos/shrikeh/teapot/languages","stargazers_url":"https://api.github.com/repos/shrikeh/teapot/stargazers","contributors_url":"https://api.github.com/repos/shrikeh/teapot/contributors","subscribers_url":"https://api.github.com/repos/shrikeh/teapot/subscribers","subscription_url":"https://api.github.com/repos/shrikeh/teapot/subscription","commits_url":"https://api.github.com/repos/shrikeh/teapot/commits{/sha}","git_commits_url":"https://api.github.com/repos/shrikeh/teapot/git/commits{/sha}","comments_url":"https://api.github.com/repos/shrikeh/teapot/comments{/number}","issue_comment_url":"https://api.github.com/repos/shrikeh/teapot/issues/comments{/number}","contents_url":"https://api.github.com/repos/shrikeh/teapot/contents/{+path}","compare_url":"https://api.github.com/repos/shrikeh/teapot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shrikeh/teapot/merges","archive_url":"https://api.github.com/repos/shrikeh/teapot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shrikeh/teapot/downloads","issues_url":"https://api.github.com/repos/shrikeh/teapot/issues{/number}","pulls_url":"https://api.github.com/repos/shrikeh/teapot/pulls{/number}","milestones_url":"https://api.github.com/repos/shrikeh/teapot/milestones{/number}","notifications_url":"https://api.github.com/repos/shrikeh/teapot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shrikeh/teapot/labels{/name}","releases_url":"https://api.github.com/repos/shrikeh/teapot/releases{/id}","deployments_url":"https://api.github.com/repos/shrikeh/teapot/deployments","created_at":"2013-03-26T19:28:10Z","updated_at":"2016-04-13T17:16:54Z","pushed_at":"2016-04-21T15:29:21Z","git_url":"git://github.com/shrikeh/teapot.git","ssh_url":"git@github.com:shrikeh/teapot.git","clone_url":"https://github.com/shrikeh/teapot.git","svn_url":"https://github.com/shrikeh/teapot","homepage":null,"size":425,"stargazers_count":219,"watchers_count":219,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":219,"default_branch":"master"}},"base":{"label":"shrikeh:master","ref":"master","sha":"e9dd3580987bfcb61e45c5a1ba8fbf2640ee11dd","user":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"repo":{"id":9038504,"name":"teapot","full_name":"shrikeh/teapot","owner":{"login":"shrikeh","id":445227,"avatar_url":"https://avatars.githubusercontent.com/u/445227?v=3","gravatar_id":"","url":"https://api.github.com/users/shrikeh","html_url":"https://github.com/shrikeh","followers_url":"https://api.github.com/users/shrikeh/followers","following_url":"https://api.github.com/users/shrikeh/following{/other_user}","gists_url":"https://api.github.com/users/shrikeh/gists{/gist_id}","starred_url":"https://api.github.com/users/shrikeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrikeh/subscriptions","organizations_url":"https://api.github.com/users/shrikeh/orgs","repos_url":"https://api.github.com/users/shrikeh/repos","events_url":"https://api.github.com/users/shrikeh/events{/privacy}","received_events_url":"https://api.github.com/users/shrikeh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shrikeh/teapot","description":"Simple PHP library to improve verbosity in HTTP response codes","fork":false,"url":"https://api.github.com/repos/shrikeh/teapot","forks_url":"https://api.github.com/repos/shrikeh/teapot/forks","keys_url":"https://api.github.com/repos/shrikeh/teapot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shrikeh/teapot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shrikeh/teapot/teams","hooks_url":"https://api.github.com/repos/shrikeh/teapot/hooks","issue_events_url":"https://api.github.com/repos/shrikeh/teapot/issues/events{/number}","events_url":"https://api.github.com/repos/shrikeh/teapot/events","assignees_url":"https://api.github.com/repos/shrikeh/teapot/assignees{/user}","branches_url":"https://api.github.com/repos/shrikeh/teapot/branches{/branch}","tags_url":"https://api.github.com/repos/shrikeh/teapot/tags","blobs_url":"https://api.github.com/repos/shrikeh/teapot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shrikeh/teapot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shrikeh/teapot/git/refs{/sha}","trees_url":"https://api.github.com/repos/shrikeh/teapot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shrikeh/teapot/statuses/{sha}","languages_url":"https://api.github.com/repos/shrikeh/teapot/languages","stargazers_url":"https://api.github.com/repos/shrikeh/teapot/stargazers","contributors_url":"https://api.github.com/repos/shrikeh/teapot/contributors","subscribers_url":"https://api.github.com/repos/shrikeh/teapot/subscribers","subscription_url":"https://api.github.com/repos/shrikeh/teapot/subscription","commits_url":"https://api.github.com/repos/shrikeh/teapot/commits{/sha}","git_commits_url":"https://api.github.com/repos/shrikeh/teapot/git/commits{/sha}","comments_url":"https://api.github.com/repos/shrikeh/teapot/comments{/number}","issue_comment_url":"https://api.github.com/repos/shrikeh/teapot/issues/comments{/number}","contents_url":"https://api.github.com/repos/shrikeh/teapot/contents/{+path}","compare_url":"https://api.github.com/repos/shrikeh/teapot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shrikeh/teapot/merges","archive_url":"https://api.github.com/repos/shrikeh/teapot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shrikeh/teapot/downloads","issues_url":"https://api.github.com/repos/shrikeh/teapot/issues{/number}","pulls_url":"https://api.github.com/repos/shrikeh/teapot/pulls{/number}","milestones_url":"https://api.github.com/repos/shrikeh/teapot/milestones{/number}","notifications_url":"https://api.github.com/repos/shrikeh/teapot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shrikeh/teapot/labels{/name}","releases_url":"https://api.github.com/repos/shrikeh/teapot/releases{/id}","deployments_url":"https://api.github.com/repos/shrikeh/teapot/deployments","created_at":"2013-03-26T19:28:10Z","updated_at":"2016-04-13T17:16:54Z","pushed_at":"2016-04-21T15:29:21Z","git_url":"git://github.com/shrikeh/teapot.git","ssh_url":"git@github.com:shrikeh/teapot.git","clone_url":"https://github.com/shrikeh/teapot.git","svn_url":"https://github.com/shrikeh/teapot","homepage":null,"size":425,"stargazers_count":219,"watchers_count":219,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/45"},"html":{"href":"https://github.com/shrikeh/teapot/pull/45"},"issue":{"href":"https://api.github.com/repos/shrikeh/teapot/issues/45"},"comments":{"href":"https://api.github.com/repos/shrikeh/teapot/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shrikeh/teapot/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/shrikeh/teapot/statuses/19476058291c9a5ff406d4237234e5da2a0059e4"}}}}