{"action":"created","comment":{"url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/comments/28666677","id":28666677,"diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+\n+namespace DesignPatterns\\Behavioral\\Command\\Tv;\n+\n+class Receiver\n+{\n+    public $currentChannel = 0;\n+\n+    /**\n+     * Turn On\n+     */\n+    public function turnOn()\n+    {\n+        echo \"The television is on.\";","path":"Behavioral/Command/Tv/Receiver.php","position":14,"original_position":14,"commit_id":"889e26620fb3be48a4c7ae93d18b22b8d6b008ba","original_commit_id":"889e26620fb3be48a4c7ae93d18b22b8d6b008ba","user":{"login":"domnikl","id":603116,"avatar_url":"https://avatars.githubusercontent.com/u/603116?v=3","gravatar_id":"","url":"https://api.github.com/users/domnikl","html_url":"https://github.com/domnikl","followers_url":"https://api.github.com/users/domnikl/followers","following_url":"https://api.github.com/users/domnikl/following{/other_user}","gists_url":"https://api.github.com/users/domnikl/gists{/gist_id}","starred_url":"https://api.github.com/users/domnikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domnikl/subscriptions","organizations_url":"https://api.github.com/users/domnikl/orgs","repos_url":"https://api.github.com/users/domnikl/repos","events_url":"https://api.github.com/users/domnikl/events{/privacy}","received_events_url":"https://api.github.com/users/domnikl/received_events","type":"User","site_admin":false},"body":"I think it's a bad way to show an example by generating output in class methods. This is not a clean way to program and therefore it's a not a good way to show an example here.","created_at":"2015-04-20T06:45:40Z","updated_at":"2015-04-20T06:45:40Z","html_url":"https://github.com/domnikl/DesignPatternsPHP/pull/132#discussion_r28666677","pull_request_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/comments/28666677"},"html":{"href":"https://github.com/domnikl/DesignPatternsPHP/pull/132#discussion_r28666677"},"pull_request":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132","id":33164266,"html_url":"https://github.com/domnikl/DesignPatternsPHP/pull/132","diff_url":"https://github.com/domnikl/DesignPatternsPHP/pull/132.diff","patch_url":"https://github.com/domnikl/DesignPatternsPHP/pull/132.patch","issue_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/132","number":132,"state":"open","locked":false,"title":"[Command]schoolbook says \"TV Receiver\"","user":{"login":"ftwbzhao","id":492682,"avatar_url":"https://avatars.githubusercontent.com/u/492682?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwbzhao","html_url":"https://github.com/ftwbzhao","followers_url":"https://api.github.com/users/ftwbzhao/followers","following_url":"https://api.github.com/users/ftwbzhao/following{/other_user}","gists_url":"https://api.github.com/users/ftwbzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwbzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwbzhao/subscriptions","organizations_url":"https://api.github.com/users/ftwbzhao/orgs","repos_url":"https://api.github.com/users/ftwbzhao/repos","events_url":"https://api.github.com/users/ftwbzhao/events{/privacy}","received_events_url":"https://api.github.com/users/ftwbzhao/received_events","type":"User","site_admin":false},"body":"fix #122 ","created_at":"2015-04-13T13:41:23Z","updated_at":"2015-04-20T06:45:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cd9caa8496048c764a49ddd82c187b171537133","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132/commits","review_comments_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132/comments","review_comment_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/132/comments","statuses_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/statuses/889e26620fb3be48a4c7ae93d18b22b8d6b008ba","head":{"label":"ftwbzhao:master","ref":"master","sha":"889e26620fb3be48a4c7ae93d18b22b8d6b008ba","user":{"login":"ftwbzhao","id":492682,"avatar_url":"https://avatars.githubusercontent.com/u/492682?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwbzhao","html_url":"https://github.com/ftwbzhao","followers_url":"https://api.github.com/users/ftwbzhao/followers","following_url":"https://api.github.com/users/ftwbzhao/following{/other_user}","gists_url":"https://api.github.com/users/ftwbzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwbzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwbzhao/subscriptions","organizations_url":"https://api.github.com/users/ftwbzhao/orgs","repos_url":"https://api.github.com/users/ftwbzhao/repos","events_url":"https://api.github.com/users/ftwbzhao/events{/privacy}","received_events_url":"https://api.github.com/users/ftwbzhao/received_events","type":"User","site_admin":false},"repo":{"id":33869382,"name":"DesignPatternsPHP","full_name":"ftwbzhao/DesignPatternsPHP","owner":{"login":"ftwbzhao","id":492682,"avatar_url":"https://avatars.githubusercontent.com/u/492682?v=3","gravatar_id":"","url":"https://api.github.com/users/ftwbzhao","html_url":"https://github.com/ftwbzhao","followers_url":"https://api.github.com/users/ftwbzhao/followers","following_url":"https://api.github.com/users/ftwbzhao/following{/other_user}","gists_url":"https://api.github.com/users/ftwbzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/ftwbzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftwbzhao/subscriptions","organizations_url":"https://api.github.com/users/ftwbzhao/orgs","repos_url":"https://api.github.com/users/ftwbzhao/repos","events_url":"https://api.github.com/users/ftwbzhao/events{/privacy}","received_events_url":"https://api.github.com/users/ftwbzhao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ftwbzhao/DesignPatternsPHP","description":"sample code for several design patterns in PHP","fork":true,"url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP","forks_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/forks","keys_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/teams","hooks_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/hooks","issue_events_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/issues/events{/number}","events_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/events","assignees_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/assignees{/user}","branches_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/branches{/branch}","tags_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/tags","blobs_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/languages","stargazers_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/stargazers","contributors_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/contributors","subscribers_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/subscribers","subscription_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/subscription","commits_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/contents/{+path}","compare_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/merges","archive_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/downloads","issues_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/issues{/number}","pulls_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/labels{/name}","releases_url":"https://api.github.com/repos/ftwbzhao/DesignPatternsPHP/releases{/id}","created_at":"2015-04-13T13:14:29Z","updated_at":"2015-04-14T08:47:01Z","pushed_at":"2015-04-14T08:46:59Z","git_url":"git://github.com/ftwbzhao/DesignPatternsPHP.git","ssh_url":"git@github.com:ftwbzhao/DesignPatternsPHP.git","clone_url":"https://github.com/ftwbzhao/DesignPatternsPHP.git","svn_url":"https://github.com/ftwbzhao/DesignPatternsPHP","homepage":"","size":1739,"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":"domnikl:master","ref":"master","sha":"8eed6f9c212b97bd9edd5de904a9dc94d799a52c","user":{"login":"domnikl","id":603116,"avatar_url":"https://avatars.githubusercontent.com/u/603116?v=3","gravatar_id":"","url":"https://api.github.com/users/domnikl","html_url":"https://github.com/domnikl","followers_url":"https://api.github.com/users/domnikl/followers","following_url":"https://api.github.com/users/domnikl/following{/other_user}","gists_url":"https://api.github.com/users/domnikl/gists{/gist_id}","starred_url":"https://api.github.com/users/domnikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domnikl/subscriptions","organizations_url":"https://api.github.com/users/domnikl/orgs","repos_url":"https://api.github.com/users/domnikl/repos","events_url":"https://api.github.com/users/domnikl/events{/privacy}","received_events_url":"https://api.github.com/users/domnikl/received_events","type":"User","site_admin":false},"repo":{"id":2246815,"name":"DesignPatternsPHP","full_name":"domnikl/DesignPatternsPHP","owner":{"login":"domnikl","id":603116,"avatar_url":"https://avatars.githubusercontent.com/u/603116?v=3","gravatar_id":"","url":"https://api.github.com/users/domnikl","html_url":"https://github.com/domnikl","followers_url":"https://api.github.com/users/domnikl/followers","following_url":"https://api.github.com/users/domnikl/following{/other_user}","gists_url":"https://api.github.com/users/domnikl/gists{/gist_id}","starred_url":"https://api.github.com/users/domnikl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domnikl/subscriptions","organizations_url":"https://api.github.com/users/domnikl/orgs","repos_url":"https://api.github.com/users/domnikl/repos","events_url":"https://api.github.com/users/domnikl/events{/privacy}","received_events_url":"https://api.github.com/users/domnikl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domnikl/DesignPatternsPHP","description":"sample code for several design patterns in PHP","fork":false,"url":"https://api.github.com/repos/domnikl/DesignPatternsPHP","forks_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/forks","keys_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/teams","hooks_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/hooks","issue_events_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/events{/number}","events_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/events","assignees_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/assignees{/user}","branches_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/branches{/branch}","tags_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/tags","blobs_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/languages","stargazers_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/stargazers","contributors_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/contributors","subscribers_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/subscribers","subscription_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/subscription","commits_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/contents/{+path}","compare_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/merges","archive_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/downloads","issues_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues{/number}","pulls_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/labels{/name}","releases_url":"https://api.github.com/repos/domnikl/DesignPatternsPHP/releases{/id}","created_at":"2011-08-22T05:24:31Z","updated_at":"2015-04-20T06:33:46Z","pushed_at":"2015-04-14T08:47:00Z","git_url":"git://github.com/domnikl/DesignPatternsPHP.git","ssh_url":"git@github.com:domnikl/DesignPatternsPHP.git","clone_url":"https://github.com/domnikl/DesignPatternsPHP.git","svn_url":"https://github.com/domnikl/DesignPatternsPHP","homepage":"","size":4752,"stargazers_count":6276,"watchers_count":6276,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1270,"mirror_url":null,"open_issues_count":9,"forks":1270,"open_issues":9,"watchers":6276,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132"},"html":{"href":"https://github.com/domnikl/DesignPatternsPHP/pull/132"},"issue":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/132"},"comments":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/domnikl/DesignPatternsPHP/statuses/889e26620fb3be48a4c7ae93d18b22b8d6b008ba"}}}}