{"action":"created","comment":{"url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/comments/228707394","pull_request_review_id":169049799,"id":228707394,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODcwNzM5NA==","diff_hunk":"@@ -0,0 +1,21 @@\n+<?php\n+\n+namespace Unleash\\Strategy;\n+\n+use Unleash\\Context;\n+\n+class GradualRolloutRandomStrategy extends Strategy\n+{\n+    public function __construct()\n+    {\n+        parent::__construct('gradualRolloutRandom');\n+    }\n+\n+    public function isEnabled(array $parameters = [], Context $context = null): bool\n+    {\n+        $percentage = $parameters['percentage'];\n+        $random = round((mt_rand() / mt_getrandmax()) * 100);","path":"src/Strategy/GradualRolloutRandomStrategy.php","position":17,"original_position":17,"commit_id":"007e1a8d802c6b63ad642fb19400b577d5d9a463","original_commit_id":"fe3e3472e53310d9c67e202829ad5613375b8246","user":{"login":"MyDigitalLife","id":5130538,"node_id":"MDQ6VXNlcjUxMzA1Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5130538?v=4","gravatar_id":"","url":"https://api.github.com/users/MyDigitalLife","html_url":"https://github.com/MyDigitalLife","followers_url":"https://api.github.com/users/MyDigitalLife/followers","following_url":"https://api.github.com/users/MyDigitalLife/following{/other_user}","gists_url":"https://api.github.com/users/MyDigitalLife/gists{/gist_id}","starred_url":"https://api.github.com/users/MyDigitalLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyDigitalLife/subscriptions","organizations_url":"https://api.github.com/users/MyDigitalLife/orgs","repos_url":"https://api.github.com/users/MyDigitalLife/repos","events_url":"https://api.github.com/users/MyDigitalLife/events{/privacy}","received_events_url":"https://api.github.com/users/MyDigitalLife/received_events","type":"User","site_admin":false},"body":"@dungahk Looks like your right, don't know why i solved it this way. ","created_at":"2018-10-27T09:43:20Z","updated_at":"2018-10-27T09:43:21Z","html_url":"https://github.com/Unleash/unleash-client-php/pull/2#discussion_r228707394","pull_request_url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/comments/228707394"},"html":{"href":"https://github.com/Unleash/unleash-client-php/pull/2#discussion_r228707394"},"pull_request":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2"}},"in_reply_to_id":228495462},"pull_request":{"url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2","id":225886558,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1ODg2NTU4","html_url":"https://github.com/Unleash/unleash-client-php/pull/2","diff_url":"https://github.com/Unleash/unleash-client-php/pull/2.diff","patch_url":"https://github.com/Unleash/unleash-client-php/pull/2.patch","issue_url":"https://api.github.com/repos/Unleash/unleash-client-php/issues/2","number":2,"state":"open","locked":false,"title":"Added strategies","user":{"login":"MyDigitalLife","id":5130538,"node_id":"MDQ6VXNlcjUxMzA1Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5130538?v=4","gravatar_id":"","url":"https://api.github.com/users/MyDigitalLife","html_url":"https://github.com/MyDigitalLife","followers_url":"https://api.github.com/users/MyDigitalLife/followers","following_url":"https://api.github.com/users/MyDigitalLife/following{/other_user}","gists_url":"https://api.github.com/users/MyDigitalLife/gists{/gist_id}","starred_url":"https://api.github.com/users/MyDigitalLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyDigitalLife/subscriptions","organizations_url":"https://api.github.com/users/MyDigitalLife/orgs","repos_url":"https://api.github.com/users/MyDigitalLife/repos","events_url":"https://api.github.com/users/MyDigitalLife/events{/privacy}","received_events_url":"https://api.github.com/users/MyDigitalLife/received_events","type":"User","site_admin":false},"body":"A small first step to getting this up and running. I took the strategies as defined in https://github.com/Unleash/unleash-client-node/tree/master/src/strategy and implemented them including tests.","created_at":"2018-10-25T20:05:23Z","updated_at":"2018-10-27T09:43:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"622584e53fc91c2e7cf77462fa2ac0bfdb26fa22","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Unleash/unleash-client-php/issues/2/comments","statuses_url":"https://api.github.com/repos/Unleash/unleash-client-php/statuses/007e1a8d802c6b63ad642fb19400b577d5d9a463","head":{"label":"MyDigitalLife:strategies","ref":"strategies","sha":"007e1a8d802c6b63ad642fb19400b577d5d9a463","user":{"login":"MyDigitalLife","id":5130538,"node_id":"MDQ6VXNlcjUxMzA1Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5130538?v=4","gravatar_id":"","url":"https://api.github.com/users/MyDigitalLife","html_url":"https://github.com/MyDigitalLife","followers_url":"https://api.github.com/users/MyDigitalLife/followers","following_url":"https://api.github.com/users/MyDigitalLife/following{/other_user}","gists_url":"https://api.github.com/users/MyDigitalLife/gists{/gist_id}","starred_url":"https://api.github.com/users/MyDigitalLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyDigitalLife/subscriptions","organizations_url":"https://api.github.com/users/MyDigitalLife/orgs","repos_url":"https://api.github.com/users/MyDigitalLife/repos","events_url":"https://api.github.com/users/MyDigitalLife/events{/privacy}","received_events_url":"https://api.github.com/users/MyDigitalLife/received_events","type":"User","site_admin":false},"repo":{"id":154661728,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ2NjE3Mjg=","name":"unleash-client-php","full_name":"MyDigitalLife/unleash-client-php","private":false,"owner":{"login":"MyDigitalLife","id":5130538,"node_id":"MDQ6VXNlcjUxMzA1Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/5130538?v=4","gravatar_id":"","url":"https://api.github.com/users/MyDigitalLife","html_url":"https://github.com/MyDigitalLife","followers_url":"https://api.github.com/users/MyDigitalLife/followers","following_url":"https://api.github.com/users/MyDigitalLife/following{/other_user}","gists_url":"https://api.github.com/users/MyDigitalLife/gists{/gist_id}","starred_url":"https://api.github.com/users/MyDigitalLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyDigitalLife/subscriptions","organizations_url":"https://api.github.com/users/MyDigitalLife/orgs","repos_url":"https://api.github.com/users/MyDigitalLife/repos","events_url":"https://api.github.com/users/MyDigitalLife/events{/privacy}","received_events_url":"https://api.github.com/users/MyDigitalLife/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MyDigitalLife/unleash-client-php","description":"PHP client for Unleash","fork":true,"url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php","forks_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/forks","keys_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/teams","hooks_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/hooks","issue_events_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/events","assignees_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/tags","blobs_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/languages","stargazers_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/stargazers","contributors_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/contributors","subscribers_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/subscribers","subscription_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/subscription","commits_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/merges","archive_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/downloads","issues_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/labels{/name}","releases_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/MyDigitalLife/unleash-client-php/deployments","created_at":"2018-10-25T11:46:11Z","updated_at":"2018-10-25T11:46:13Z","pushed_at":"2018-10-26T17:38:57Z","git_url":"git://github.com/MyDigitalLife/unleash-client-php.git","ssh_url":"git@github.com:MyDigitalLife/unleash-client-php.git","clone_url":"https://github.com/MyDigitalLife/unleash-client-php.git","svn_url":"https://github.com/MyDigitalLife/unleash-client-php","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Unleash:master","ref":"master","sha":"cfed3527676cb095e2ce3253be123783b360a83d","user":{"login":"Unleash","id":23053233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDUzMjMz","avatar_url":"https://avatars1.githubusercontent.com/u/23053233?v=4","gravatar_id":"","url":"https://api.github.com/users/Unleash","html_url":"https://github.com/Unleash","followers_url":"https://api.github.com/users/Unleash/followers","following_url":"https://api.github.com/users/Unleash/following{/other_user}","gists_url":"https://api.github.com/users/Unleash/gists{/gist_id}","starred_url":"https://api.github.com/users/Unleash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unleash/subscriptions","organizations_url":"https://api.github.com/users/Unleash/orgs","repos_url":"https://api.github.com/users/Unleash/repos","events_url":"https://api.github.com/users/Unleash/events{/privacy}","received_events_url":"https://api.github.com/users/Unleash/received_events","type":"Organization","site_admin":false},"repo":{"id":154286593,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQyODY1OTM=","name":"unleash-client-php","full_name":"Unleash/unleash-client-php","private":false,"owner":{"login":"Unleash","id":23053233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDUzMjMz","avatar_url":"https://avatars1.githubusercontent.com/u/23053233?v=4","gravatar_id":"","url":"https://api.github.com/users/Unleash","html_url":"https://github.com/Unleash","followers_url":"https://api.github.com/users/Unleash/followers","following_url":"https://api.github.com/users/Unleash/following{/other_user}","gists_url":"https://api.github.com/users/Unleash/gists{/gist_id}","starred_url":"https://api.github.com/users/Unleash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unleash/subscriptions","organizations_url":"https://api.github.com/users/Unleash/orgs","repos_url":"https://api.github.com/users/Unleash/repos","events_url":"https://api.github.com/users/Unleash/events{/privacy}","received_events_url":"https://api.github.com/users/Unleash/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Unleash/unleash-client-php","description":"PHP client for Unleash","fork":false,"url":"https://api.github.com/repos/Unleash/unleash-client-php","forks_url":"https://api.github.com/repos/Unleash/unleash-client-php/forks","keys_url":"https://api.github.com/repos/Unleash/unleash-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Unleash/unleash-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Unleash/unleash-client-php/teams","hooks_url":"https://api.github.com/repos/Unleash/unleash-client-php/hooks","issue_events_url":"https://api.github.com/repos/Unleash/unleash-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/Unleash/unleash-client-php/events","assignees_url":"https://api.github.com/repos/Unleash/unleash-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/Unleash/unleash-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/Unleash/unleash-client-php/tags","blobs_url":"https://api.github.com/repos/Unleash/unleash-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Unleash/unleash-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Unleash/unleash-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/Unleash/unleash-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Unleash/unleash-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/Unleash/unleash-client-php/languages","stargazers_url":"https://api.github.com/repos/Unleash/unleash-client-php/stargazers","contributors_url":"https://api.github.com/repos/Unleash/unleash-client-php/contributors","subscribers_url":"https://api.github.com/repos/Unleash/unleash-client-php/subscribers","subscription_url":"https://api.github.com/repos/Unleash/unleash-client-php/subscription","commits_url":"https://api.github.com/repos/Unleash/unleash-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/Unleash/unleash-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/Unleash/unleash-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/Unleash/unleash-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/Unleash/unleash-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/Unleash/unleash-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Unleash/unleash-client-php/merges","archive_url":"https://api.github.com/repos/Unleash/unleash-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Unleash/unleash-client-php/downloads","issues_url":"https://api.github.com/repos/Unleash/unleash-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/Unleash/unleash-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/Unleash/unleash-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/Unleash/unleash-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Unleash/unleash-client-php/labels{/name}","releases_url":"https://api.github.com/repos/Unleash/unleash-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/Unleash/unleash-client-php/deployments","created_at":"2018-10-23T07:56:22Z","updated_at":"2018-10-25T11:45:32Z","pushed_at":"2018-10-26T17:38:58Z","git_url":"git://github.com/Unleash/unleash-client-php.git","ssh_url":"git@github.com:Unleash/unleash-client-php.git","clone_url":"https://github.com/Unleash/unleash-client-php.git","svn_url":"https://github.com/Unleash/unleash-client-php","homepage":null,"size":7,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2"},"html":{"href":"https://github.com/Unleash/unleash-client-php/pull/2"},"issue":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/issues/2"},"comments":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Unleash/unleash-client-php/statuses/007e1a8d802c6b63ad642fb19400b577d5d9a463"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"MyDigitalLife"}}