{"action":"created","comment":{"url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/comments/241766790","pull_request_review_id":185124491,"id":241766790,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTc2Njc5MA==","diff_hunk":"@@ -0,0 +1,171 @@\n+<?php\n+\n+declare(strict_types=1);\n+\n+namespace App\\Model\\DTO;\n+\n+use Symfony\\Component\\Serializer\\Annotation\\Groups;\n+use Symfony\\Component\\Validator\\Constraints as Assert;\n+\n+class ShareMessage\n+{\n+    /**\n+     * @var string\n+     * @Groups({\"read\"})\n+     */\n+    private $id;\n+\n+    /**\n+     * @var string\n+     * @Assert\\NotBlank\n+     * @Assert\\Type(\"string\")\n+     * @Groups({\"read\", \"write\"})\n+     */\n+    private $message;\n+\n+    /**\n+     * @var \\DateTime\n+     */\n+    private $expires;\n+\n+    /**\n+     * @var int\n+     *\n+     * @Assert\\NotBlank\n+     * @Assert\\Type(\"int\")\n+     * @Groups({\"write\"})\n+     */\n+    private $secondsLimit;\n+\n+    /**\n+     * @var int\n+     *\n+     * @Assert\\Type(\"int\")\n+     * @Assert\\GreaterThan(0)\n+     * @Assert\\NotBlank\n+     * @Groups({\"write\"})\n+     */\n+    private $requestsLimit;\n+\n+    /**\n+     * @return $this\n+     */\n+    public function initExpiration()\n+    {\n+        $secondsLimit = $this->secondsLimit;\n+        if (is_null($secondsLimit)) {\n+            return $this;\n+        }\n+        $this->setExpires(new \\DateTime(\"now +{$secondsLimit} seconds\"));\n+\n+        return $this;\n+    }\n+\n+    /**\n+     * @return string $id\n+     */\n+    public function getId()\n+    {\n+        return $this->id;\n+    }\n+\n+    /**\n+     * @param string $id\n+     *\n+     * @return $this\n+     */\n+    public function setId($id)\n+    {\n+        $this->id = $id;\n+\n+        return $this;\n+    }\n+\n+    /**\n+     * @param string $message\n+     *\n+     * @return $this\n+     */\n+    public function setMessage($message)\n+    {\n+        $this->message = $message;\n+\n+        return $this;\n+    }\n+\n+    /**\n+     * @return string $message\n+     */\n+    public function getMessage()\n+    {\n+        return $this->message;\n+    }\n+\n+    /**\n+     * @param \\DateTime $expires\n+     *\n+     * @return $this\n+     */\n+    public function setExpires($expires)\n+    {\n+        if ($expires instanceof \\DateTime) {\n+            $this->expires = $expires;\n+        } elseif (is_string($expires)) {\n+            $this->expires = new \\DateTime($expires);","path":"src/Model/DTO/ShareMessage.php","position":114,"original_position":114,"commit_id":"9e787327ac6d05341776e17306a1bcfca10d556e","original_commit_id":"d79aeba23670948cc819bb48058c98a4508f5370","user":{"login":"aburov-4xxi","id":39696569,"node_id":"MDQ6VXNlcjM5Njk2NTY5","avatar_url":"https://avatars1.githubusercontent.com/u/39696569?v=4","gravatar_id":"","url":"https://api.github.com/users/aburov-4xxi","html_url":"https://github.com/aburov-4xxi","followers_url":"https://api.github.com/users/aburov-4xxi/followers","following_url":"https://api.github.com/users/aburov-4xxi/following{/other_user}","gists_url":"https://api.github.com/users/aburov-4xxi/gists{/gist_id}","starred_url":"https://api.github.com/users/aburov-4xxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aburov-4xxi/subscriptions","organizations_url":"https://api.github.com/users/aburov-4xxi/orgs","repos_url":"https://api.github.com/users/aburov-4xxi/repos","events_url":"https://api.github.com/users/aburov-4xxi/events{/privacy}","received_events_url":"https://api.github.com/users/aburov-4xxi/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-12-14T14:13:14Z","updated_at":"2018-12-14T14:13:15Z","html_url":"https://github.com/caesar-team/caesar-server/pull/21#discussion_r241766790","pull_request_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/comments/241766790"},"html":{"href":"https://github.com/caesar-team/caesar-server/pull/21#discussion_r241766790"},"pull_request":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21"}},"in_reply_to_id":241759258},"pull_request":{"url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21","id":238050491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4MDUwNDkx","html_url":"https://github.com/caesar-team/caesar-server/pull/21","diff_url":"https://github.com/caesar-team/caesar-server/pull/21.diff","patch_url":"https://github.com/caesar-team/caesar-server/pull/21.patch","issue_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/21","number":21,"state":"closed","locked":false,"title":"[Share] CAES-112: Implemented share message manager","user":{"login":"aburov-4xxi","id":39696569,"node_id":"MDQ6VXNlcjM5Njk2NTY5","avatar_url":"https://avatars1.githubusercontent.com/u/39696569?v=4","gravatar_id":"","url":"https://api.github.com/users/aburov-4xxi","html_url":"https://github.com/aburov-4xxi","followers_url":"https://api.github.com/users/aburov-4xxi/followers","following_url":"https://api.github.com/users/aburov-4xxi/following{/other_user}","gists_url":"https://api.github.com/users/aburov-4xxi/gists{/gist_id}","starred_url":"https://api.github.com/users/aburov-4xxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aburov-4xxi/subscriptions","organizations_url":"https://api.github.com/users/aburov-4xxi/orgs","repos_url":"https://api.github.com/users/aburov-4xxi/repos","events_url":"https://api.github.com/users/aburov-4xxi/events{/privacy}","received_events_url":"https://api.github.com/users/aburov-4xxi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-12T14:09:55Z","updated_at":"2018-12-14T14:13:14Z","closed_at":"2018-12-14T14:11:08Z","merged_at":"2018-12-14T14:11:08Z","merge_commit_sha":"6c90abdd592e239833bc6a97d52bbb27863f36ee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21/commits","review_comments_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21/comments","review_comment_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/21/comments","statuses_url":"https://api.github.com/repos/caesar-team/caesar-server/statuses/9e787327ac6d05341776e17306a1bcfca10d556e","head":{"label":"caesar-team:feature/CAES-112-share-message","ref":"feature/CAES-112-share-message","sha":"9e787327ac6d05341776e17306a1bcfca10d556e","user":{"login":"caesar-team","id":29732245,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzMyMjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29732245?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar-team","html_url":"https://github.com/caesar-team","followers_url":"https://api.github.com/users/caesar-team/followers","following_url":"https://api.github.com/users/caesar-team/following{/other_user}","gists_url":"https://api.github.com/users/caesar-team/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar-team/subscriptions","organizations_url":"https://api.github.com/users/caesar-team/orgs","repos_url":"https://api.github.com/users/caesar-team/repos","events_url":"https://api.github.com/users/caesar-team/events{/privacy}","received_events_url":"https://api.github.com/users/caesar-team/received_events","type":"Organization","site_admin":false},"repo":{"id":155068500,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUwNjg1MDA=","name":"caesar-server","full_name":"caesar-team/caesar-server","private":false,"owner":{"login":"caesar-team","id":29732245,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzMyMjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29732245?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar-team","html_url":"https://github.com/caesar-team","followers_url":"https://api.github.com/users/caesar-team/followers","following_url":"https://api.github.com/users/caesar-team/following{/other_user}","gists_url":"https://api.github.com/users/caesar-team/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar-team/subscriptions","organizations_url":"https://api.github.com/users/caesar-team/orgs","repos_url":"https://api.github.com/users/caesar-team/repos","events_url":"https://api.github.com/users/caesar-team/events{/privacy}","received_events_url":"https://api.github.com/users/caesar-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/caesar-team/caesar-server","description":null,"fork":false,"url":"https://api.github.com/repos/caesar-team/caesar-server","forks_url":"https://api.github.com/repos/caesar-team/caesar-server/forks","keys_url":"https://api.github.com/repos/caesar-team/caesar-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caesar-team/caesar-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caesar-team/caesar-server/teams","hooks_url":"https://api.github.com/repos/caesar-team/caesar-server/hooks","issue_events_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/events{/number}","events_url":"https://api.github.com/repos/caesar-team/caesar-server/events","assignees_url":"https://api.github.com/repos/caesar-team/caesar-server/assignees{/user}","branches_url":"https://api.github.com/repos/caesar-team/caesar-server/branches{/branch}","tags_url":"https://api.github.com/repos/caesar-team/caesar-server/tags","blobs_url":"https://api.github.com/repos/caesar-team/caesar-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caesar-team/caesar-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caesar-team/caesar-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/caesar-team/caesar-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caesar-team/caesar-server/statuses/{sha}","languages_url":"https://api.github.com/repos/caesar-team/caesar-server/languages","stargazers_url":"https://api.github.com/repos/caesar-team/caesar-server/stargazers","contributors_url":"https://api.github.com/repos/caesar-team/caesar-server/contributors","subscribers_url":"https://api.github.com/repos/caesar-team/caesar-server/subscribers","subscription_url":"https://api.github.com/repos/caesar-team/caesar-server/subscription","commits_url":"https://api.github.com/repos/caesar-team/caesar-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/caesar-team/caesar-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/caesar-team/caesar-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/caesar-team/caesar-server/contents/{+path}","compare_url":"https://api.github.com/repos/caesar-team/caesar-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caesar-team/caesar-server/merges","archive_url":"https://api.github.com/repos/caesar-team/caesar-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caesar-team/caesar-server/downloads","issues_url":"https://api.github.com/repos/caesar-team/caesar-server/issues{/number}","pulls_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls{/number}","milestones_url":"https://api.github.com/repos/caesar-team/caesar-server/milestones{/number}","notifications_url":"https://api.github.com/repos/caesar-team/caesar-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caesar-team/caesar-server/labels{/name}","releases_url":"https://api.github.com/repos/caesar-team/caesar-server/releases{/id}","deployments_url":"https://api.github.com/repos/caesar-team/caesar-server/deployments","created_at":"2018-10-28T12:26:45Z","updated_at":"2018-11-10T14:54:05Z","pushed_at":"2018-12-14T14:11:20Z","git_url":"git://github.com/caesar-team/caesar-server.git","ssh_url":"git@github.com:caesar-team/caesar-server.git","clone_url":"https://github.com/caesar-team/caesar-server.git","svn_url":"https://github.com/caesar-team/caesar-server","homepage":null,"size":239,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"caesar-team:develop","ref":"develop","sha":"101690fad8a41217c3b857cd778a90c275252835","user":{"login":"caesar-team","id":29732245,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzMyMjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29732245?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar-team","html_url":"https://github.com/caesar-team","followers_url":"https://api.github.com/users/caesar-team/followers","following_url":"https://api.github.com/users/caesar-team/following{/other_user}","gists_url":"https://api.github.com/users/caesar-team/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar-team/subscriptions","organizations_url":"https://api.github.com/users/caesar-team/orgs","repos_url":"https://api.github.com/users/caesar-team/repos","events_url":"https://api.github.com/users/caesar-team/events{/privacy}","received_events_url":"https://api.github.com/users/caesar-team/received_events","type":"Organization","site_admin":false},"repo":{"id":155068500,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUwNjg1MDA=","name":"caesar-server","full_name":"caesar-team/caesar-server","private":false,"owner":{"login":"caesar-team","id":29732245,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzMyMjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29732245?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar-team","html_url":"https://github.com/caesar-team","followers_url":"https://api.github.com/users/caesar-team/followers","following_url":"https://api.github.com/users/caesar-team/following{/other_user}","gists_url":"https://api.github.com/users/caesar-team/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar-team/subscriptions","organizations_url":"https://api.github.com/users/caesar-team/orgs","repos_url":"https://api.github.com/users/caesar-team/repos","events_url":"https://api.github.com/users/caesar-team/events{/privacy}","received_events_url":"https://api.github.com/users/caesar-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/caesar-team/caesar-server","description":null,"fork":false,"url":"https://api.github.com/repos/caesar-team/caesar-server","forks_url":"https://api.github.com/repos/caesar-team/caesar-server/forks","keys_url":"https://api.github.com/repos/caesar-team/caesar-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caesar-team/caesar-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caesar-team/caesar-server/teams","hooks_url":"https://api.github.com/repos/caesar-team/caesar-server/hooks","issue_events_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/events{/number}","events_url":"https://api.github.com/repos/caesar-team/caesar-server/events","assignees_url":"https://api.github.com/repos/caesar-team/caesar-server/assignees{/user}","branches_url":"https://api.github.com/repos/caesar-team/caesar-server/branches{/branch}","tags_url":"https://api.github.com/repos/caesar-team/caesar-server/tags","blobs_url":"https://api.github.com/repos/caesar-team/caesar-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caesar-team/caesar-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caesar-team/caesar-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/caesar-team/caesar-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caesar-team/caesar-server/statuses/{sha}","languages_url":"https://api.github.com/repos/caesar-team/caesar-server/languages","stargazers_url":"https://api.github.com/repos/caesar-team/caesar-server/stargazers","contributors_url":"https://api.github.com/repos/caesar-team/caesar-server/contributors","subscribers_url":"https://api.github.com/repos/caesar-team/caesar-server/subscribers","subscription_url":"https://api.github.com/repos/caesar-team/caesar-server/subscription","commits_url":"https://api.github.com/repos/caesar-team/caesar-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/caesar-team/caesar-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/caesar-team/caesar-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/caesar-team/caesar-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/caesar-team/caesar-server/contents/{+path}","compare_url":"https://api.github.com/repos/caesar-team/caesar-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caesar-team/caesar-server/merges","archive_url":"https://api.github.com/repos/caesar-team/caesar-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caesar-team/caesar-server/downloads","issues_url":"https://api.github.com/repos/caesar-team/caesar-server/issues{/number}","pulls_url":"https://api.github.com/repos/caesar-team/caesar-server/pulls{/number}","milestones_url":"https://api.github.com/repos/caesar-team/caesar-server/milestones{/number}","notifications_url":"https://api.github.com/repos/caesar-team/caesar-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caesar-team/caesar-server/labels{/name}","releases_url":"https://api.github.com/repos/caesar-team/caesar-server/releases{/id}","deployments_url":"https://api.github.com/repos/caesar-team/caesar-server/deployments","created_at":"2018-10-28T12:26:45Z","updated_at":"2018-11-10T14:54:05Z","pushed_at":"2018-12-14T14:11:20Z","git_url":"git://github.com/caesar-team/caesar-server.git","ssh_url":"git@github.com:caesar-team/caesar-server.git","clone_url":"https://github.com/caesar-team/caesar-server.git","svn_url":"https://github.com/caesar-team/caesar-server","homepage":null,"size":239,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21"},"html":{"href":"https://github.com/caesar-team/caesar-server/pull/21"},"issue":{"href":"https://api.github.com/repos/caesar-team/caesar-server/issues/21"},"comments":{"href":"https://api.github.com/repos/caesar-team/caesar-server/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caesar-team/caesar-server/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/caesar-team/caesar-server/statuses/9e787327ac6d05341776e17306a1bcfca10d556e"}},"author_association":"NONE"}}
{"actor":{"display_login":"aburov-4xxi"}}