{"action":"created","comment":{"url":"https://api.github.com/repos/Respect/Validation/pulls/comments/192073418","pull_request_review_id":124773438,"id":192073418,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjA3MzQxOA==","diff_hunk":"@@ -0,0 +1,49 @@\n+<?php\n+\n+/*\n+ * This file is part of Respect/Validation.\n+ *\n+ * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>\n+ *\n+ * For the full copyright and license information, please view the \"LICENSE.md\"\n+ * file that was distributed with this source code.\n+ */\n+\n+declare(strict_types=1);\n+\n+namespace Respect\\Validation\\Rules;\n+\n+use Respect\\Validation\\Helpers\\ComparisonHelper;\n+\n+/**\n+ * Validates whether the input is less than a value.\n+ *\n+ * @author Henrique Moody <henriquemoody@gmail.com>\n+ */\n+final class LessThan extends AbstractRule\n+{\n+    use ComparisonHelper;\n+\n+    /**\n+     * @var mixed\n+     */\n+    private $compareTo;\n+\n+    /**\n+     * Initializes the rule.","path":"library/Rules/LessThan.php","position":33,"original_position":33,"commit_id":"e354b0c88366b1f36a8c120b3297b495b05e1617","original_commit_id":"e354b0c88366b1f36a8c120b3297b495b05e1617","user":{"login":"batusa","id":5388003,"node_id":"MDQ6VXNlcjUzODgwMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/5388003?v=4","gravatar_id":"","url":"https://api.github.com/users/batusa","html_url":"https://github.com/batusa","followers_url":"https://api.github.com/users/batusa/followers","following_url":"https://api.github.com/users/batusa/following{/other_user}","gists_url":"https://api.github.com/users/batusa/gists{/gist_id}","starred_url":"https://api.github.com/users/batusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batusa/subscriptions","organizations_url":"https://api.github.com/users/batusa/orgs","repos_url":"https://api.github.com/users/batusa/repos","events_url":"https://api.github.com/users/batusa/events{/privacy}","received_events_url":"https://api.github.com/users/batusa/received_events","type":"User","site_admin":false},"body":"I think we could be more descriptive and meaningful here.","created_at":"2018-05-31T11:53:27Z","updated_at":"2018-05-31T11:53:56Z","html_url":"https://github.com/Respect/Validation/pull/964#discussion_r192073418","pull_request_url":"https://api.github.com/repos/Respect/Validation/pulls/964","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments/192073418"},"html":{"href":"https://github.com/Respect/Validation/pull/964#discussion_r192073418"},"pull_request":{"href":"https://api.github.com/repos/Respect/Validation/pulls/964"}}},"pull_request":{"url":"https://api.github.com/repos/Respect/Validation/pulls/964","id":191725699,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNzI1Njk5","html_url":"https://github.com/Respect/Validation/pull/964","diff_url":"https://github.com/Respect/Validation/pull/964.diff","patch_url":"https://github.com/Respect/Validation/pull/964.patch","issue_url":"https://api.github.com/repos/Respect/Validation/issues/964","number":964,"state":"open","locked":false,"title":"Create \"LessThan\" rule","user":{"login":"henriquemoody","id":154023,"node_id":"MDQ6VXNlcjE1NDAyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/154023?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemoody","html_url":"https://github.com/henriquemoody","followers_url":"https://api.github.com/users/henriquemoody/followers","following_url":"https://api.github.com/users/henriquemoody/following{/other_user}","gists_url":"https://api.github.com/users/henriquemoody/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemoody/subscriptions","organizations_url":"https://api.github.com/users/henriquemoody/orgs","repos_url":"https://api.github.com/users/henriquemoody/repos","events_url":"https://api.github.com/users/henriquemoody/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemoody/received_events","type":"User","site_admin":false},"body":"- `LessThan(mixed $compareTo)`\r\n\r\nValidates whether the input is less than a value.\r\n\r\n```php\r\nv::lessThan(10)->validate(9); // true\r\nv::lessThan(10)->validate(10); // false\r\n```\r\n\r\nYou can also validate:\r\n\r\n```php\r\n// Dates\r\nv::dateTime()->lessThan('2010-01-01')->validate('2000-01-01'); // true\r\nv::dateTime()->lessThan('2010-01-01')->validate('2020-01-01'); // false\r\n\r\n// Date intervals\r\nv::dateTime()->lessThan('today')->validate('3 days ago'); // true\r\nv::dateTime()->lessThan('yesterday')->validate('tomorrow'); // false\r\n\r\n// Single character strings\r\nv::dateTime()->lessThan('b')->validate('a'); // true\r\nv::dateTime()->lessThan('a')->validate('z'); // false\r\n```\r\n\r\nMessage template for this validator includes `{{compareTo}}`.","created_at":"2018-05-31T11:34:08Z","updated_at":"2018-05-31T11:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b973e565cd8f54316836e66205ed5b2ff4c1195","assignee":{"login":"henriquemoody","id":154023,"node_id":"MDQ6VXNlcjE1NDAyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/154023?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemoody","html_url":"https://github.com/henriquemoody","followers_url":"https://api.github.com/users/henriquemoody/followers","following_url":"https://api.github.com/users/henriquemoody/following{/other_user}","gists_url":"https://api.github.com/users/henriquemoody/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemoody/subscriptions","organizations_url":"https://api.github.com/users/henriquemoody/orgs","repos_url":"https://api.github.com/users/henriquemoody/repos","events_url":"https://api.github.com/users/henriquemoody/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemoody/received_events","type":"User","site_admin":false},"assignees":[{"login":"henriquemoody","id":154023,"node_id":"MDQ6VXNlcjE1NDAyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/154023?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemoody","html_url":"https://github.com/henriquemoody","followers_url":"https://api.github.com/users/henriquemoody/followers","following_url":"https://api.github.com/users/henriquemoody/following{/other_user}","gists_url":"https://api.github.com/users/henriquemoody/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemoody/subscriptions","organizations_url":"https://api.github.com/users/henriquemoody/orgs","repos_url":"https://api.github.com/users/henriquemoody/repos","events_url":"https://api.github.com/users/henriquemoody/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemoody/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":163135,"node_id":"MDU6TGFiZWwxNjMxMzU=","url":"https://api.github.com/repos/Respect/Validation/labels/New%20Validator","name":"New Validator","color":"02e10c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Respect/Validation/pulls/964/commits","review_comments_url":"https://api.github.com/repos/Respect/Validation/pulls/964/comments","review_comment_url":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Respect/Validation/issues/964/comments","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/e354b0c88366b1f36a8c120b3297b495b05e1617","head":{"label":"Werkspot:lessThan","ref":"lessThan","sha":"e354b0c88366b1f36a8c120b3297b495b05e1617","user":{"login":"Werkspot","id":4354216,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQyMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/4354216?v=4","gravatar_id":"","url":"https://api.github.com/users/Werkspot","html_url":"https://github.com/Werkspot","followers_url":"https://api.github.com/users/Werkspot/followers","following_url":"https://api.github.com/users/Werkspot/following{/other_user}","gists_url":"https://api.github.com/users/Werkspot/gists{/gist_id}","starred_url":"https://api.github.com/users/Werkspot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Werkspot/subscriptions","organizations_url":"https://api.github.com/users/Werkspot/orgs","repos_url":"https://api.github.com/users/Werkspot/repos","events_url":"https://api.github.com/users/Werkspot/events{/privacy}","received_events_url":"https://api.github.com/users/Werkspot/received_events","type":"Organization","site_admin":false},"repo":{"id":135552412,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1NTI0MTI=","name":"Validation","full_name":"Werkspot/Validation","owner":{"login":"Werkspot","id":4354216,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNTQyMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/4354216?v=4","gravatar_id":"","url":"https://api.github.com/users/Werkspot","html_url":"https://github.com/Werkspot","followers_url":"https://api.github.com/users/Werkspot/followers","following_url":"https://api.github.com/users/Werkspot/following{/other_user}","gists_url":"https://api.github.com/users/Werkspot/gists{/gist_id}","starred_url":"https://api.github.com/users/Werkspot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Werkspot/subscriptions","organizations_url":"https://api.github.com/users/Werkspot/orgs","repos_url":"https://api.github.com/users/Werkspot/repos","events_url":"https://api.github.com/users/Werkspot/events{/privacy}","received_events_url":"https://api.github.com/users/Werkspot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Werkspot/Validation","description":"The most awesome validation engine ever created for PHP","fork":true,"url":"https://api.github.com/repos/Werkspot/Validation","forks_url":"https://api.github.com/repos/Werkspot/Validation/forks","keys_url":"https://api.github.com/repos/Werkspot/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Werkspot/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Werkspot/Validation/teams","hooks_url":"https://api.github.com/repos/Werkspot/Validation/hooks","issue_events_url":"https://api.github.com/repos/Werkspot/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/Werkspot/Validation/events","assignees_url":"https://api.github.com/repos/Werkspot/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/Werkspot/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/Werkspot/Validation/tags","blobs_url":"https://api.github.com/repos/Werkspot/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Werkspot/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Werkspot/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Werkspot/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Werkspot/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/Werkspot/Validation/languages","stargazers_url":"https://api.github.com/repos/Werkspot/Validation/stargazers","contributors_url":"https://api.github.com/repos/Werkspot/Validation/contributors","subscribers_url":"https://api.github.com/repos/Werkspot/Validation/subscribers","subscription_url":"https://api.github.com/repos/Werkspot/Validation/subscription","commits_url":"https://api.github.com/repos/Werkspot/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Werkspot/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Werkspot/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Werkspot/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Werkspot/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/Werkspot/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Werkspot/Validation/merges","archive_url":"https://api.github.com/repos/Werkspot/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Werkspot/Validation/downloads","issues_url":"https://api.github.com/repos/Werkspot/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/Werkspot/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/Werkspot/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/Werkspot/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Werkspot/Validation/labels{/name}","releases_url":"https://api.github.com/repos/Werkspot/Validation/releases{/id}","deployments_url":"https://api.github.com/repos/Werkspot/Validation/deployments","created_at":"2018-05-31T08:04:07Z","updated_at":"2018-05-31T08:04:12Z","pushed_at":"2018-05-31T11:33:14Z","git_url":"git://github.com/Werkspot/Validation.git","ssh_url":"git@github.com:Werkspot/Validation.git","clone_url":"https://github.com/Werkspot/Validation.git","svn_url":"https://github.com/Werkspot/Validation","homepage":"http://respect.github.io/Validation","size":5637,"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":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.1"}},"base":{"label":"Respect:master","ref":"master","sha":"51ec5e1b95844fadf728ae629b502535724c6fa7","user":{"login":"Respect","id":354431,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDQzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/354431?v=4","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"repo":{"id":931033,"node_id":"MDEwOlJlcG9zaXRvcnk5MzEwMzM=","name":"Validation","full_name":"Respect/Validation","owner":{"login":"Respect","id":354431,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NDQzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/354431?v=4","gravatar_id":"","url":"https://api.github.com/users/Respect","html_url":"https://github.com/Respect","followers_url":"https://api.github.com/users/Respect/followers","following_url":"https://api.github.com/users/Respect/following{/other_user}","gists_url":"https://api.github.com/users/Respect/gists{/gist_id}","starred_url":"https://api.github.com/users/Respect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Respect/subscriptions","organizations_url":"https://api.github.com/users/Respect/orgs","repos_url":"https://api.github.com/users/Respect/repos","events_url":"https://api.github.com/users/Respect/events{/privacy}","received_events_url":"https://api.github.com/users/Respect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Respect/Validation","description":"The most awesome validation engine ever created for PHP","fork":false,"url":"https://api.github.com/repos/Respect/Validation","forks_url":"https://api.github.com/repos/Respect/Validation/forks","keys_url":"https://api.github.com/repos/Respect/Validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Respect/Validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Respect/Validation/teams","hooks_url":"https://api.github.com/repos/Respect/Validation/hooks","issue_events_url":"https://api.github.com/repos/Respect/Validation/issues/events{/number}","events_url":"https://api.github.com/repos/Respect/Validation/events","assignees_url":"https://api.github.com/repos/Respect/Validation/assignees{/user}","branches_url":"https://api.github.com/repos/Respect/Validation/branches{/branch}","tags_url":"https://api.github.com/repos/Respect/Validation/tags","blobs_url":"https://api.github.com/repos/Respect/Validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Respect/Validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Respect/Validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Respect/Validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Respect/Validation/statuses/{sha}","languages_url":"https://api.github.com/repos/Respect/Validation/languages","stargazers_url":"https://api.github.com/repos/Respect/Validation/stargazers","contributors_url":"https://api.github.com/repos/Respect/Validation/contributors","subscribers_url":"https://api.github.com/repos/Respect/Validation/subscribers","subscription_url":"https://api.github.com/repos/Respect/Validation/subscription","commits_url":"https://api.github.com/repos/Respect/Validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Respect/Validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Respect/Validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Respect/Validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Respect/Validation/contents/{+path}","compare_url":"https://api.github.com/repos/Respect/Validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Respect/Validation/merges","archive_url":"https://api.github.com/repos/Respect/Validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Respect/Validation/downloads","issues_url":"https://api.github.com/repos/Respect/Validation/issues{/number}","pulls_url":"https://api.github.com/repos/Respect/Validation/pulls{/number}","milestones_url":"https://api.github.com/repos/Respect/Validation/milestones{/number}","notifications_url":"https://api.github.com/repos/Respect/Validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Respect/Validation/labels{/name}","releases_url":"https://api.github.com/repos/Respect/Validation/releases{/id}","deployments_url":"https://api.github.com/repos/Respect/Validation/deployments","created_at":"2010-09-22T16:08:05Z","updated_at":"2018-05-31T11:28:49Z","pushed_at":"2018-05-31T11:50:49Z","git_url":"git://github.com/Respect/Validation.git","ssh_url":"git@github.com:Respect/Validation.git","clone_url":"https://github.com/Respect/Validation.git","svn_url":"https://github.com/Respect/Validation","homepage":"http://respect.github.io/Validation","size":5623,"stargazers_count":4565,"watchers_count":4565,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":723,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":723,"open_issues":90,"watchers":4565,"default_branch":"1.1"}},"_links":{"self":{"href":"https://api.github.com/repos/Respect/Validation/pulls/964"},"html":{"href":"https://github.com/Respect/Validation/pull/964"},"issue":{"href":"https://api.github.com/repos/Respect/Validation/issues/964"},"comments":{"href":"https://api.github.com/repos/Respect/Validation/issues/964/comments"},"review_comments":{"href":"https://api.github.com/repos/Respect/Validation/pulls/964/comments"},"review_comment":{"href":"https://api.github.com/repos/Respect/Validation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Respect/Validation/pulls/964/commits"},"statuses":{"href":"https://api.github.com/repos/Respect/Validation/statuses/e354b0c88366b1f36a8c120b3297b495b05e1617"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"batusa"}}