{"action":"created","comment":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/comments/31814940","id":31814940,"diff_hunk":"@@ -0,0 +1,308 @@\n+<?php\n+/**\n+ * This file is part of phpDocumentor.\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ *\n+ * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>\n+ * @license   http://www.opensource.org/licenses/mit-license.php MIT\n+ * @link      http://phpdoc.org\n+ */\n+\n+namespace phpDocumentor;\n+\n+/**\n+ * Value Object for DSN.\n+ */\n+\n+final class Dsn\n+{\n+    /** @var string */\n+    private $scheme;\n+\n+    /** @var string */\n+    private $host;\n+\n+    /** @var int */\n+    private $port;\n+\n+    /** @var string */\n+    private $user;\n+\n+    /** @var string */\n+    private $password;\n+\n+    /** @var string */\n+    private $path;\n+\n+    /** @var array  */\n+    private $query = [];\n+\n+    /** @var array  */\n+    private $parameters = [];\n+\n+    /** @var array  */\n+    private $locationParts = [];\n+\n+    /** @var array  */\n+    private $dsnParts = [];\n+\n+    /**\n+     * @param $dsn\n+     */\n+    public function __construct($dsn)\n+    {\n+        $this->parse($dsn);\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getScheme()\n+    {\n+        return $this->scheme;\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getHost()\n+    {\n+        return $this->host;\n+    }\n+\n+    /**\n+     * @return int\n+     */\n+    public function getPort()\n+    {\n+        return $this->port;\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getUsername()\n+    {\n+        return $this->user;\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getPassword()\n+    {\n+        return $this->password;\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getPath()\n+    {\n+        return new Path($this->path);\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getQuery()\n+    {\n+        return $this->query;\n+    }\n+\n+    /**\n+     * @return string\n+     */\n+    public function getParameters()\n+    {\n+        return $this->parameters;\n+    }\n+\n+    /**\n+     * @param $dsn","path":"src/phpDocumentor/Dsn.php","position":124,"original_position":124,"commit_id":"ecfc4905bad5185ae43483bcb34611fb8c28e3cb","original_commit_id":"ecfc4905bad5185ae43483bcb34611fb8c28e3cb","user":{"login":"mvriel","id":193704,"avatar_url":"https://avatars.githubusercontent.com/u/193704?v=3","gravatar_id":"","url":"https://api.github.com/users/mvriel","html_url":"https://github.com/mvriel","followers_url":"https://api.github.com/users/mvriel/followers","following_url":"https://api.github.com/users/mvriel/following{/other_user}","gists_url":"https://api.github.com/users/mvriel/gists{/gist_id}","starred_url":"https://api.github.com/users/mvriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvriel/subscriptions","organizations_url":"https://api.github.com/users/mvriel/orgs","repos_url":"https://api.github.com/users/mvriel/repos","events_url":"https://api.github.com/users/mvriel/events{/privacy}","received_events_url":"https://api.github.com/users/mvriel/received_events","type":"User","site_admin":false},"body":"missing a summary and type for the DSN","created_at":"2015-06-05T14:07:12Z","updated_at":"2015-06-05T14:07:12Z","html_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587#discussion_r31814940","pull_request_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587","_links":{"self":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/comments/31814940"},"html":{"href":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587#discussion_r31814940"},"pull_request":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587"}}},"pull_request":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587","id":36855104,"html_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587","diff_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587.diff","patch_url":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587.patch","issue_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1587","number":1587,"state":"open","locked":false,"title":"Value object for Dsn","user":{"login":"mbed67","id":7139949,"avatar_url":"https://avatars.githubusercontent.com/u/7139949?v=3","gravatar_id":"","url":"https://api.github.com/users/mbed67","html_url":"https://github.com/mbed67","followers_url":"https://api.github.com/users/mbed67/followers","following_url":"https://api.github.com/users/mbed67/following{/other_user}","gists_url":"https://api.github.com/users/mbed67/gists{/gist_id}","starred_url":"https://api.github.com/users/mbed67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbed67/subscriptions","organizations_url":"https://api.github.com/users/mbed67/orgs","repos_url":"https://api.github.com/users/mbed67/repos","events_url":"https://api.github.com/users/mbed67/events{/privacy}","received_events_url":"https://api.github.com/users/mbed67/received_events","type":"User","site_admin":false},"body":"Splits a DSN string into its parts","created_at":"2015-06-03T17:08:03Z","updated_at":"2015-06-05T14:07:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4316de6fe040632e27408305a543814c8a049515","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587/commits","review_comments_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587/comments","review_comment_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1587/comments","statuses_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/statuses/ecfc4905bad5185ae43483bcb34611fb8c28e3cb","head":{"label":"mbed67:collectingFiles","ref":"collectingFiles","sha":"ecfc4905bad5185ae43483bcb34611fb8c28e3cb","user":{"login":"mbed67","id":7139949,"avatar_url":"https://avatars.githubusercontent.com/u/7139949?v=3","gravatar_id":"","url":"https://api.github.com/users/mbed67","html_url":"https://github.com/mbed67","followers_url":"https://api.github.com/users/mbed67/followers","following_url":"https://api.github.com/users/mbed67/following{/other_user}","gists_url":"https://api.github.com/users/mbed67/gists{/gist_id}","starred_url":"https://api.github.com/users/mbed67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbed67/subscriptions","organizations_url":"https://api.github.com/users/mbed67/orgs","repos_url":"https://api.github.com/users/mbed67/repos","events_url":"https://api.github.com/users/mbed67/events{/privacy}","received_events_url":"https://api.github.com/users/mbed67/received_events","type":"User","site_admin":false},"repo":{"id":22033310,"name":"phpDocumentor2","full_name":"mbed67/phpDocumentor2","owner":{"login":"mbed67","id":7139949,"avatar_url":"https://avatars.githubusercontent.com/u/7139949?v=3","gravatar_id":"","url":"https://api.github.com/users/mbed67","html_url":"https://github.com/mbed67","followers_url":"https://api.github.com/users/mbed67/followers","following_url":"https://api.github.com/users/mbed67/following{/other_user}","gists_url":"https://api.github.com/users/mbed67/gists{/gist_id}","starred_url":"https://api.github.com/users/mbed67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbed67/subscriptions","organizations_url":"https://api.github.com/users/mbed67/orgs","repos_url":"https://api.github.com/users/mbed67/repos","events_url":"https://api.github.com/users/mbed67/events{/privacy}","received_events_url":"https://api.github.com/users/mbed67/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbed67/phpDocumentor2","description":"Documentation Generator for PHP ","fork":true,"url":"https://api.github.com/repos/mbed67/phpDocumentor2","forks_url":"https://api.github.com/repos/mbed67/phpDocumentor2/forks","keys_url":"https://api.github.com/repos/mbed67/phpDocumentor2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbed67/phpDocumentor2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbed67/phpDocumentor2/teams","hooks_url":"https://api.github.com/repos/mbed67/phpDocumentor2/hooks","issue_events_url":"https://api.github.com/repos/mbed67/phpDocumentor2/issues/events{/number}","events_url":"https://api.github.com/repos/mbed67/phpDocumentor2/events","assignees_url":"https://api.github.com/repos/mbed67/phpDocumentor2/assignees{/user}","branches_url":"https://api.github.com/repos/mbed67/phpDocumentor2/branches{/branch}","tags_url":"https://api.github.com/repos/mbed67/phpDocumentor2/tags","blobs_url":"https://api.github.com/repos/mbed67/phpDocumentor2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbed67/phpDocumentor2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbed67/phpDocumentor2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbed67/phpDocumentor2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbed67/phpDocumentor2/statuses/{sha}","languages_url":"https://api.github.com/repos/mbed67/phpDocumentor2/languages","stargazers_url":"https://api.github.com/repos/mbed67/phpDocumentor2/stargazers","contributors_url":"https://api.github.com/repos/mbed67/phpDocumentor2/contributors","subscribers_url":"https://api.github.com/repos/mbed67/phpDocumentor2/subscribers","subscription_url":"https://api.github.com/repos/mbed67/phpDocumentor2/subscription","commits_url":"https://api.github.com/repos/mbed67/phpDocumentor2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbed67/phpDocumentor2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbed67/phpDocumentor2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbed67/phpDocumentor2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbed67/phpDocumentor2/contents/{+path}","compare_url":"https://api.github.com/repos/mbed67/phpDocumentor2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbed67/phpDocumentor2/merges","archive_url":"https://api.github.com/repos/mbed67/phpDocumentor2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbed67/phpDocumentor2/downloads","issues_url":"https://api.github.com/repos/mbed67/phpDocumentor2/issues{/number}","pulls_url":"https://api.github.com/repos/mbed67/phpDocumentor2/pulls{/number}","milestones_url":"https://api.github.com/repos/mbed67/phpDocumentor2/milestones{/number}","notifications_url":"https://api.github.com/repos/mbed67/phpDocumentor2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbed67/phpDocumentor2/labels{/name}","releases_url":"https://api.github.com/repos/mbed67/phpDocumentor2/releases{/id}","created_at":"2014-07-20T13:05:51Z","updated_at":"2014-11-26T11:02:37Z","pushed_at":"2015-06-05T14:00:48Z","git_url":"git://github.com/mbed67/phpDocumentor2.git","ssh_url":"git@github.com:mbed67/phpDocumentor2.git","clone_url":"https://github.com/mbed67/phpDocumentor2.git","svn_url":"https://github.com/mbed67/phpDocumentor2","homepage":"http://www.phpdoc.org","size":27220,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"phpDocumentor:develop","ref":"develop","sha":"6862d3be1e413937dda332a3465257a49bfbd590","user":{"login":"phpDocumentor","id":1239567,"avatar_url":"https://avatars.githubusercontent.com/u/1239567?v=3","gravatar_id":"","url":"https://api.github.com/users/phpDocumentor","html_url":"https://github.com/phpDocumentor","followers_url":"https://api.github.com/users/phpDocumentor/followers","following_url":"https://api.github.com/users/phpDocumentor/following{/other_user}","gists_url":"https://api.github.com/users/phpDocumentor/gists{/gist_id}","starred_url":"https://api.github.com/users/phpDocumentor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpDocumentor/subscriptions","organizations_url":"https://api.github.com/users/phpDocumentor/orgs","repos_url":"https://api.github.com/users/phpDocumentor/repos","events_url":"https://api.github.com/users/phpDocumentor/events{/privacy}","received_events_url":"https://api.github.com/users/phpDocumentor/received_events","type":"Organization","site_admin":false},"repo":{"id":761653,"name":"phpDocumentor2","full_name":"phpDocumentor/phpDocumentor2","owner":{"login":"phpDocumentor","id":1239567,"avatar_url":"https://avatars.githubusercontent.com/u/1239567?v=3","gravatar_id":"","url":"https://api.github.com/users/phpDocumentor","html_url":"https://github.com/phpDocumentor","followers_url":"https://api.github.com/users/phpDocumentor/followers","following_url":"https://api.github.com/users/phpDocumentor/following{/other_user}","gists_url":"https://api.github.com/users/phpDocumentor/gists{/gist_id}","starred_url":"https://api.github.com/users/phpDocumentor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpDocumentor/subscriptions","organizations_url":"https://api.github.com/users/phpDocumentor/orgs","repos_url":"https://api.github.com/users/phpDocumentor/repos","events_url":"https://api.github.com/users/phpDocumentor/events{/privacy}","received_events_url":"https://api.github.com/users/phpDocumentor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpDocumentor/phpDocumentor2","description":"Documentation Generator for PHP ","fork":false,"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2","forks_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/forks","keys_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/teams","hooks_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/hooks","issue_events_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/events{/number}","events_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/events","assignees_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/assignees{/user}","branches_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/branches{/branch}","tags_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/tags","blobs_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/statuses/{sha}","languages_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/languages","stargazers_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/stargazers","contributors_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/contributors","subscribers_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/subscribers","subscription_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/subscription","commits_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/contents/{+path}","compare_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/merges","archive_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/downloads","issues_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues{/number}","pulls_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls{/number}","milestones_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/milestones{/number}","notifications_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/labels{/name}","releases_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/releases{/id}","created_at":"2010-07-07T12:07:55Z","updated_at":"2015-06-04T17:45:34Z","pushed_at":"2015-06-05T14:01:23Z","git_url":"git://github.com/phpDocumentor/phpDocumentor2.git","ssh_url":"git@github.com:phpDocumentor/phpDocumentor2.git","clone_url":"https://github.com/phpDocumentor/phpDocumentor2.git","svn_url":"https://github.com/phpDocumentor/phpDocumentor2","homepage":"http://www.phpdoc.org","size":34075,"stargazers_count":1459,"watchers_count":1459,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":377,"mirror_url":null,"open_issues_count":226,"forks":377,"open_issues":226,"watchers":1459,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587"},"html":{"href":"https://github.com/phpDocumentor/phpDocumentor2/pull/1587"},"issue":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1587"},"comments":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1587/comments"},"review_comments":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587/comments"},"review_comment":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/pulls/1587/commits"},"statuses":{"href":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/statuses/ecfc4905bad5185ae43483bcb34611fb8c28e3cb"}}}}