{"action":"opened","issue":{"url":"https://api.github.com/repos/kherge/php.enum/issues/3","repository_url":"https://api.github.com/repos/kherge/php.enum","labels_url":"https://api.github.com/repos/kherge/php.enum/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kherge/php.enum/issues/3/comments","events_url":"https://api.github.com/repos/kherge/php.enum/issues/3/events","html_url":"https://github.com/kherge/php.enum/issues/3","id":299037063,"number":3,"title":"Check validity of variant name and value","user":{"login":"kherge","id":9122157,"avatar_url":"https://avatars0.githubusercontent.com/u/9122157?v=4","gravatar_id":"","url":"https://api.github.com/users/kherge","html_url":"https://github.com/kherge","followers_url":"https://api.github.com/users/kherge/followers","following_url":"https://api.github.com/users/kherge/following{/other_user}","gists_url":"https://api.github.com/users/kherge/gists{/gist_id}","starred_url":"https://api.github.com/users/kherge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kherge/subscriptions","organizations_url":"https://api.github.com/users/kherge/orgs","repos_url":"https://api.github.com/users/kherge/repos","events_url":"https://api.github.com/users/kherge/events{/privacy}","received_events_url":"https://api.github.com/users/kherge/received_events","type":"User","site_admin":false},"labels":[{"id":843570719,"url":"https://api.github.com/repos/kherge/php.enum/labels/Feature","name":"Feature","color":"91ca55","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T16:26:14Z","updated_at":"2018-02-21T16:26:14Z","closed_at":null,"author_association":"OWNER","body":"## Problem\r\n\r\nI cannot easily check if a variant name or value is valid.\r\n\r\n## Resolution\r\n\r\nAdd methods to check if a variant name or value is valid.\r\n\r\n```php\r\nif (Examle::hasName('ONE')) {\r\n    // ... valid name ...\r\n}\r\n\r\nif (Example::hasValue(1)) {\r\n    // ... valid value ...\r\n}\r\n```"}}
{"actor":{"display_login":"kherge"}}