{"action":"created","comment":{"url":"https://api.github.com/repos/zendframework/zf2/pulls/comments/22400343","id":22400343,"diff_hunk":"@@ -0,0 +1,178 @@\n+<?php\n+/**\n+ * Zend Framework (http://framework.zend.com/)\n+ *\n+ * @link      http://github.com/zendframework/zf2 for the canonical source repository\n+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)\n+ * @license   http://framework.zend.com/license/new-bsd New BSD License\n+ */\n+namespace Zend\\Console\\Prompt;\n+\n+use Zend\\Console\\Exception;\n+\n+class Checkbox extends Char\n+{\n+\n+    /**\n+     * @var string\n+     */\n+    protected $promptText = 'Please select an option (Enter to finish) ';\n+\n+    /**\n+     * @var bool\n+     */\n+    protected $ignoreCase = true;\n+\n+    /**\n+     * @var array\n+     */\n+    protected $options = array();\n+\n+    /**\n+     * Checked options\n+     * @var array\n+     */\n+    protected $checkedOptions = array();\n+\n+    /**\n+     * Ask the user to select any number of pre-defined options\n+     *\n+     * @param string    $promptText     The prompt text to display in console\n+     * @param array     $options        Allowed options","path":"library/Zend/Console/Prompt/Checkbox.php","position":41,"original_position":41,"commit_id":"ac605b04e5e11e23380d676ff73d401be2e58a85","original_commit_id":"ac605b04e5e11e23380d676ff73d401be2e58a85","user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"body":"Must document that it may be a `Traversable`","created_at":"2015-01-01T15:57:07Z","updated_at":"2015-01-01T15:57:07Z","html_url":"https://github.com/zendframework/zf2/pull/7091#discussion_r22400343","pull_request_url":"https://api.github.com/repos/zendframework/zf2/pulls/7091","_links":{"self":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/comments/22400343"},"html":{"href":"https://github.com/zendframework/zf2/pull/7091#discussion_r22400343"},"pull_request":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/7091"}}},"pull_request":{"url":"https://api.github.com/repos/zendframework/zf2/pulls/7091","id":26741840,"html_url":"https://github.com/zendframework/zf2/pull/7091","diff_url":"https://github.com/zendframework/zf2/pull/7091.diff","patch_url":"https://github.com/zendframework/zf2/pull/7091.patch","issue_url":"https://api.github.com/repos/zendframework/zf2/issues/7091","number":7091,"state":"open","locked":false,"title":"Added Checkbox Console Prompt and its tests","user":{"login":"Lansoweb","id":2109813,"avatar_url":"https://avatars.githubusercontent.com/u/2109813?v=3","gravatar_id":"","url":"https://api.github.com/users/Lansoweb","html_url":"https://github.com/Lansoweb","followers_url":"https://api.github.com/users/Lansoweb/followers","following_url":"https://api.github.com/users/Lansoweb/following{/other_user}","gists_url":"https://api.github.com/users/Lansoweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Lansoweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lansoweb/subscriptions","organizations_url":"https://api.github.com/users/Lansoweb/orgs","repos_url":"https://api.github.com/users/Lansoweb/repos","events_url":"https://api.github.com/users/Lansoweb/events{/privacy}","received_events_url":"https://api.github.com/users/Lansoweb/received_events","type":"User","site_admin":false},"body":"Adding a new console prompt similar to the Select, but can select more than one option and returns an array with them.","created_at":"2015-01-01T09:50:37Z","updated_at":"2015-01-01T15:57:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a05ef2a1c4fee0e6a3ee35ec94e0bc9118b11c9","assignee":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/zendframework/zf2/milestones/26","labels_url":"https://api.github.com/repos/zendframework/zf2/milestones/26/labels","id":593244,"number":26,"title":"2.4.0","description":null,"creator":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars.githubusercontent.com/u/25943?v=3","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":163,"state":"open","created_at":"2014-03-10T21:38:11Z","updated_at":"2015-01-01T15:33:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/zendframework/zf2/pulls/7091/commits","review_comments_url":"https://api.github.com/repos/zendframework/zf2/pulls/7091/comments","review_comment_url":"https://api.github.com/repos/zendframework/zf2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/zendframework/zf2/issues/7091/comments","statuses_url":"https://api.github.com/repos/zendframework/zf2/statuses/ac605b04e5e11e23380d676ff73d401be2e58a85","head":{"label":"Lansoweb:develop","ref":"develop","sha":"ac605b04e5e11e23380d676ff73d401be2e58a85","user":{"login":"Lansoweb","id":2109813,"avatar_url":"https://avatars.githubusercontent.com/u/2109813?v=3","gravatar_id":"","url":"https://api.github.com/users/Lansoweb","html_url":"https://github.com/Lansoweb","followers_url":"https://api.github.com/users/Lansoweb/followers","following_url":"https://api.github.com/users/Lansoweb/following{/other_user}","gists_url":"https://api.github.com/users/Lansoweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Lansoweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lansoweb/subscriptions","organizations_url":"https://api.github.com/users/Lansoweb/orgs","repos_url":"https://api.github.com/users/Lansoweb/repos","events_url":"https://api.github.com/users/Lansoweb/events{/privacy}","received_events_url":"https://api.github.com/users/Lansoweb/received_events","type":"User","site_admin":false},"repo":{"id":28478778,"name":"zf2","full_name":"Lansoweb/zf2","owner":{"login":"Lansoweb","id":2109813,"avatar_url":"https://avatars.githubusercontent.com/u/2109813?v=3","gravatar_id":"","url":"https://api.github.com/users/Lansoweb","html_url":"https://github.com/Lansoweb","followers_url":"https://api.github.com/users/Lansoweb/followers","following_url":"https://api.github.com/users/Lansoweb/following{/other_user}","gists_url":"https://api.github.com/users/Lansoweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Lansoweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lansoweb/subscriptions","organizations_url":"https://api.github.com/users/Lansoweb/orgs","repos_url":"https://api.github.com/users/Lansoweb/repos","events_url":"https://api.github.com/users/Lansoweb/events{/privacy}","received_events_url":"https://api.github.com/users/Lansoweb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lansoweb/zf2","description":"Official Zend Framework 2 git repository","fork":true,"url":"https://api.github.com/repos/Lansoweb/zf2","forks_url":"https://api.github.com/repos/Lansoweb/zf2/forks","keys_url":"https://api.github.com/repos/Lansoweb/zf2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lansoweb/zf2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lansoweb/zf2/teams","hooks_url":"https://api.github.com/repos/Lansoweb/zf2/hooks","issue_events_url":"https://api.github.com/repos/Lansoweb/zf2/issues/events{/number}","events_url":"https://api.github.com/repos/Lansoweb/zf2/events","assignees_url":"https://api.github.com/repos/Lansoweb/zf2/assignees{/user}","branches_url":"https://api.github.com/repos/Lansoweb/zf2/branches{/branch}","tags_url":"https://api.github.com/repos/Lansoweb/zf2/tags","blobs_url":"https://api.github.com/repos/Lansoweb/zf2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lansoweb/zf2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lansoweb/zf2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lansoweb/zf2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lansoweb/zf2/statuses/{sha}","languages_url":"https://api.github.com/repos/Lansoweb/zf2/languages","stargazers_url":"https://api.github.com/repos/Lansoweb/zf2/stargazers","contributors_url":"https://api.github.com/repos/Lansoweb/zf2/contributors","subscribers_url":"https://api.github.com/repos/Lansoweb/zf2/subscribers","subscription_url":"https://api.github.com/repos/Lansoweb/zf2/subscription","commits_url":"https://api.github.com/repos/Lansoweb/zf2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lansoweb/zf2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lansoweb/zf2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lansoweb/zf2/issues/comments/{number}","contents_url":"https://api.github.com/repos/Lansoweb/zf2/contents/{+path}","compare_url":"https://api.github.com/repos/Lansoweb/zf2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lansoweb/zf2/merges","archive_url":"https://api.github.com/repos/Lansoweb/zf2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lansoweb/zf2/downloads","issues_url":"https://api.github.com/repos/Lansoweb/zf2/issues{/number}","pulls_url":"https://api.github.com/repos/Lansoweb/zf2/pulls{/number}","milestones_url":"https://api.github.com/repos/Lansoweb/zf2/milestones{/number}","notifications_url":"https://api.github.com/repos/Lansoweb/zf2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lansoweb/zf2/labels{/name}","releases_url":"https://api.github.com/repos/Lansoweb/zf2/releases{/id}","created_at":"2014-12-25T10:27:43Z","updated_at":"2014-12-31T20:43:40Z","pushed_at":"2015-01-01T15:49:49Z","git_url":"git://github.com/Lansoweb/zf2.git","ssh_url":"git@github.com:Lansoweb/zf2.git","clone_url":"https://github.com/Lansoweb/zf2.git","svn_url":"https://github.com/Lansoweb/zf2","homepage":"http://framework.zend.com/","size":93003,"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":"zendframework:develop","ref":"develop","sha":"96694b402e43e8ae4a7bc07823f7ff4da2f90b0b","user":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"repo":{"id":702550,"name":"zf2","full_name":"zendframework/zf2","owner":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendframework/zf2","description":"Official Zend Framework 2 git repository","fork":false,"url":"https://api.github.com/repos/zendframework/zf2","forks_url":"https://api.github.com/repos/zendframework/zf2/forks","keys_url":"https://api.github.com/repos/zendframework/zf2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendframework/zf2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendframework/zf2/teams","hooks_url":"https://api.github.com/repos/zendframework/zf2/hooks","issue_events_url":"https://api.github.com/repos/zendframework/zf2/issues/events{/number}","events_url":"https://api.github.com/repos/zendframework/zf2/events","assignees_url":"https://api.github.com/repos/zendframework/zf2/assignees{/user}","branches_url":"https://api.github.com/repos/zendframework/zf2/branches{/branch}","tags_url":"https://api.github.com/repos/zendframework/zf2/tags","blobs_url":"https://api.github.com/repos/zendframework/zf2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendframework/zf2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendframework/zf2/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendframework/zf2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendframework/zf2/statuses/{sha}","languages_url":"https://api.github.com/repos/zendframework/zf2/languages","stargazers_url":"https://api.github.com/repos/zendframework/zf2/stargazers","contributors_url":"https://api.github.com/repos/zendframework/zf2/contributors","subscribers_url":"https://api.github.com/repos/zendframework/zf2/subscribers","subscription_url":"https://api.github.com/repos/zendframework/zf2/subscription","commits_url":"https://api.github.com/repos/zendframework/zf2/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendframework/zf2/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendframework/zf2/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendframework/zf2/issues/comments/{number}","contents_url":"https://api.github.com/repos/zendframework/zf2/contents/{+path}","compare_url":"https://api.github.com/repos/zendframework/zf2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendframework/zf2/merges","archive_url":"https://api.github.com/repos/zendframework/zf2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendframework/zf2/downloads","issues_url":"https://api.github.com/repos/zendframework/zf2/issues{/number}","pulls_url":"https://api.github.com/repos/zendframework/zf2/pulls{/number}","milestones_url":"https://api.github.com/repos/zendframework/zf2/milestones{/number}","notifications_url":"https://api.github.com/repos/zendframework/zf2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendframework/zf2/labels{/name}","releases_url":"https://api.github.com/repos/zendframework/zf2/releases{/id}","created_at":"2010-06-04T02:42:05Z","updated_at":"2015-01-01T15:45:22Z","pushed_at":"2015-01-01T15:49:36Z","git_url":"git://github.com/zendframework/zf2.git","ssh_url":"git@github.com:zendframework/zf2.git","clone_url":"https://github.com/zendframework/zf2.git","svn_url":"https://github.com/zendframework/zf2","homepage":"http://framework.zend.com/","size":217086,"stargazers_count":4972,"watchers_count":4972,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3016,"mirror_url":null,"open_issues_count":598,"forks":3016,"open_issues":598,"watchers":4972,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/7091"},"html":{"href":"https://github.com/zendframework/zf2/pull/7091"},"issue":{"href":"https://api.github.com/repos/zendframework/zf2/issues/7091"},"comments":{"href":"https://api.github.com/repos/zendframework/zf2/issues/7091/comments"},"review_comments":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/7091/comments"},"review_comment":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/zendframework/zf2/pulls/7091/commits"},"statuses":{"href":"https://api.github.com/repos/zendframework/zf2/statuses/ac605b04e5e11e23380d676ff73d401be2e58a85"}}}}