{"action":"created","comment":{"url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/comments/92946058","pull_request_review_id":13468335,"id":92946058,"diff_hunk":"@@ -0,0 +1,27 @@\n+<?php\n+\n+namespace TransformCore\\PHE\\HayApi\\NarrativeBundle\\Specification\\Drinking;\n+\n+use TransformCore\\PHE\\HayApi\\NarrativeBundle\\Specification\\NarrativeSpecification;\n+use TransformCore\\PHE\\HayApi\\PersistenceBundle\\Entity\\Questionnaire;\n+use TransformCore\\PHE\\HayApi\\PersistenceBundle\\Scoring\\Rag\\DrinkingScore;\n+\n+/**\n+ * class Drinking2to4TimesAMonthDoesNotExceed14UnitsAWeekSpecification\n+* @package TransformCore\\PHE\\HayApi\\NarrativeBundle\\Specification\\Drinking\n+ */\n+class Drinking2to4TimesAMonthDoesNotExceed14UnitsAWeekSpecification implements NarrativeSpecification\n+{\n+    \n+    public static function isSatisfiedBy(Questionnaire $questionnaire)\n+    {\n+       $drinking = $questionnaire->getDrinking();\n+        \n+        return (\n+             DrinkingScore::RAG_GREEN_CUTOFF >= DrinkingScore::getWeeklyUnits($drinking)\n+             &&\n+             DrinkingMonthlyOrLessSpecification::isSatisfiedBy($questionnaire)\n+             );","path":"src/TransformCore/PHE/HayApi/NarrativeBundle/Specification/Drinking/Drinking2to4TimesAMonthDoesNotExceed14UnitsAWeekSpecification.php","position":24,"original_position":24,"commit_id":"80d79eae570db05d1f6bb0ad3e2957602b12ec3d","original_commit_id":"80d79eae570db05d1f6bb0ad3e2957602b12ec3d","user":{"login":"brettminnie","id":6124248,"avatar_url":"https://avatars.githubusercontent.com/u/6124248?v=3","gravatar_id":"","url":"https://api.github.com/users/brettminnie","html_url":"https://github.com/brettminnie","followers_url":"https://api.github.com/users/brettminnie/followers","following_url":"https://api.github.com/users/brettminnie/following{/other_user}","gists_url":"https://api.github.com/users/brettminnie/gists{/gist_id}","starred_url":"https://api.github.com/users/brettminnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettminnie/subscriptions","organizations_url":"https://api.github.com/users/brettminnie/orgs","repos_url":"https://api.github.com/users/brettminnie/repos","events_url":"https://api.github.com/users/brettminnie/events{/privacy}","received_events_url":"https://api.github.com/users/brettminnie/received_events","type":"User","site_admin":false},"body":"align closing parenthesis with return","created_at":"2016-12-18T17:29:16Z","updated_at":"2016-12-18T17:29:16Z","html_url":"https://github.com/TransformCore/HayPersistenceApi/pull/308#discussion_r92946058","pull_request_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308","_links":{"self":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/comments/92946058"},"html":{"href":"https://github.com/TransformCore/HayPersistenceApi/pull/308#discussion_r92946058"},"pull_request":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308"}}},"pull_request":{"url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308","id":98479502,"html_url":"https://github.com/TransformCore/HayPersistenceApi/pull/308","diff_url":"https://github.com/TransformCore/HayPersistenceApi/pull/308.diff","patch_url":"https://github.com/TransformCore/HayPersistenceApi/pull/308.patch","issue_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/308","number":308,"state":"open","locked":false,"title":"Rc1.1.8","user":{"login":"coderidge","id":3243680,"avatar_url":"https://avatars.githubusercontent.com/u/3243680?v=3","gravatar_id":"","url":"https://api.github.com/users/coderidge","html_url":"https://github.com/coderidge","followers_url":"https://api.github.com/users/coderidge/followers","following_url":"https://api.github.com/users/coderidge/following{/other_user}","gists_url":"https://api.github.com/users/coderidge/gists{/gist_id}","starred_url":"https://api.github.com/users/coderidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderidge/subscriptions","organizations_url":"https://api.github.com/users/coderidge/orgs","repos_url":"https://api.github.com/users/coderidge/repos","events_url":"https://api.github.com/users/coderidge/events{/privacy}","received_events_url":"https://api.github.com/users/coderidge/received_events","type":"User","site_admin":false},"body":"Includes new copy and 2 new Drinking specifications 2 - 4 days <= 14 units , 2- 4 days 15+ units men and women","created_at":"2016-12-18T16:28:50Z","updated_at":"2016-12-18T17:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b68c20be5dc683cd60a2f22edd332e9727b4120c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308/commits","review_comments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308/comments","review_comment_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/308/comments","statuses_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/statuses/80d79eae570db05d1f6bb0ad3e2957602b12ec3d","head":{"label":"TransformCore:rc1.1.8","ref":"rc1.1.8","sha":"80d79eae570db05d1f6bb0ad3e2957602b12ec3d","user":{"login":"TransformCore","id":3064052,"avatar_url":"https://avatars.githubusercontent.com/u/3064052?v=3","gravatar_id":"","url":"https://api.github.com/users/TransformCore","html_url":"https://github.com/TransformCore","followers_url":"https://api.github.com/users/TransformCore/followers","following_url":"https://api.github.com/users/TransformCore/following{/other_user}","gists_url":"https://api.github.com/users/TransformCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TransformCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransformCore/subscriptions","organizations_url":"https://api.github.com/users/TransformCore/orgs","repos_url":"https://api.github.com/users/TransformCore/repos","events_url":"https://api.github.com/users/TransformCore/events{/privacy}","received_events_url":"https://api.github.com/users/TransformCore/received_events","type":"Organization","site_admin":false},"repo":{"id":43748291,"name":"HayPersistenceApi","full_name":"TransformCore/HayPersistenceApi","owner":{"login":"TransformCore","id":3064052,"avatar_url":"https://avatars.githubusercontent.com/u/3064052?v=3","gravatar_id":"","url":"https://api.github.com/users/TransformCore","html_url":"https://github.com/TransformCore","followers_url":"https://api.github.com/users/TransformCore/followers","following_url":"https://api.github.com/users/TransformCore/following{/other_user}","gists_url":"https://api.github.com/users/TransformCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TransformCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransformCore/subscriptions","organizations_url":"https://api.github.com/users/TransformCore/orgs","repos_url":"https://api.github.com/users/TransformCore/repos","events_url":"https://api.github.com/users/TransformCore/events{/privacy}","received_events_url":"https://api.github.com/users/TransformCore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TransformCore/HayPersistenceApi","description":"Persistence API for PHE","fork":false,"url":"https://api.github.com/repos/TransformCore/HayPersistenceApi","forks_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/forks","keys_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/teams","hooks_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/hooks","issue_events_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/events{/number}","events_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/events","assignees_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/assignees{/user}","branches_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/branches{/branch}","tags_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/tags","blobs_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/refs{/sha}","trees_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/statuses/{sha}","languages_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/languages","stargazers_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/stargazers","contributors_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/contributors","subscribers_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/subscribers","subscription_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/subscription","commits_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/commits{/sha}","git_commits_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/commits{/sha}","comments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/comments{/number}","issue_comment_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/comments{/number}","contents_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/contents/{+path}","compare_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/merges","archive_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/downloads","issues_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues{/number}","pulls_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls{/number}","milestones_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/milestones{/number}","notifications_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/labels{/name}","releases_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/releases{/id}","deployments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/deployments","created_at":"2015-10-06T12:11:36Z","updated_at":"2016-01-11T13:40:46Z","pushed_at":"2016-12-18T16:33:58Z","git_url":"git://github.com/TransformCore/HayPersistenceApi.git","ssh_url":"git@github.com:TransformCore/HayPersistenceApi.git","clone_url":"https://github.com/TransformCore/HayPersistenceApi.git","svn_url":"https://github.com/TransformCore/HayPersistenceApi","homepage":null,"size":64922,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"TransformCore:develop","ref":"develop","sha":"58056cec7a59f3215c79da493d4f3441123b7243","user":{"login":"TransformCore","id":3064052,"avatar_url":"https://avatars.githubusercontent.com/u/3064052?v=3","gravatar_id":"","url":"https://api.github.com/users/TransformCore","html_url":"https://github.com/TransformCore","followers_url":"https://api.github.com/users/TransformCore/followers","following_url":"https://api.github.com/users/TransformCore/following{/other_user}","gists_url":"https://api.github.com/users/TransformCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TransformCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransformCore/subscriptions","organizations_url":"https://api.github.com/users/TransformCore/orgs","repos_url":"https://api.github.com/users/TransformCore/repos","events_url":"https://api.github.com/users/TransformCore/events{/privacy}","received_events_url":"https://api.github.com/users/TransformCore/received_events","type":"Organization","site_admin":false},"repo":{"id":43748291,"name":"HayPersistenceApi","full_name":"TransformCore/HayPersistenceApi","owner":{"login":"TransformCore","id":3064052,"avatar_url":"https://avatars.githubusercontent.com/u/3064052?v=3","gravatar_id":"","url":"https://api.github.com/users/TransformCore","html_url":"https://github.com/TransformCore","followers_url":"https://api.github.com/users/TransformCore/followers","following_url":"https://api.github.com/users/TransformCore/following{/other_user}","gists_url":"https://api.github.com/users/TransformCore/gists{/gist_id}","starred_url":"https://api.github.com/users/TransformCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TransformCore/subscriptions","organizations_url":"https://api.github.com/users/TransformCore/orgs","repos_url":"https://api.github.com/users/TransformCore/repos","events_url":"https://api.github.com/users/TransformCore/events{/privacy}","received_events_url":"https://api.github.com/users/TransformCore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TransformCore/HayPersistenceApi","description":"Persistence API for PHE","fork":false,"url":"https://api.github.com/repos/TransformCore/HayPersistenceApi","forks_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/forks","keys_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/teams","hooks_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/hooks","issue_events_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/events{/number}","events_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/events","assignees_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/assignees{/user}","branches_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/branches{/branch}","tags_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/tags","blobs_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/refs{/sha}","trees_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/statuses/{sha}","languages_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/languages","stargazers_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/stargazers","contributors_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/contributors","subscribers_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/subscribers","subscription_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/subscription","commits_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/commits{/sha}","git_commits_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/git/commits{/sha}","comments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/comments{/number}","issue_comment_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/comments{/number}","contents_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/contents/{+path}","compare_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/merges","archive_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/downloads","issues_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues{/number}","pulls_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls{/number}","milestones_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/milestones{/number}","notifications_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/labels{/name}","releases_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/releases{/id}","deployments_url":"https://api.github.com/repos/TransformCore/HayPersistenceApi/deployments","created_at":"2015-10-06T12:11:36Z","updated_at":"2016-01-11T13:40:46Z","pushed_at":"2016-12-18T16:33:58Z","git_url":"git://github.com/TransformCore/HayPersistenceApi.git","ssh_url":"git@github.com:TransformCore/HayPersistenceApi.git","clone_url":"https://github.com/TransformCore/HayPersistenceApi.git","svn_url":"https://github.com/TransformCore/HayPersistenceApi","homepage":null,"size":64922,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308"},"html":{"href":"https://github.com/TransformCore/HayPersistenceApi/pull/308"},"issue":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/308"},"comments":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/issues/308/comments"},"review_comments":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308/comments"},"review_comment":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/pulls/308/commits"},"statuses":{"href":"https://api.github.com/repos/TransformCore/HayPersistenceApi/statuses/80d79eae570db05d1f6bb0ad3e2957602b12ec3d"}}}}
{"actor":{"display_login":"brettminnie"}}