{"action":"opened","issue":{"url":"https://api.github.com/repos/m-seikou/hashValidator/issues/5","repository_url":"https://api.github.com/repos/m-seikou/hashValidator","labels_url":"https://api.github.com/repos/m-seikou/hashValidator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/m-seikou/hashValidator/issues/5/comments","events_url":"https://api.github.com/repos/m-seikou/hashValidator/issues/5/events","html_url":"https://github.com/m-seikou/hashValidator/issues/5","id":187034827,"number":5,"title":"type: constractの検討","user":{"login":"m-seikou","id":2993352,"avatar_url":"https://avatars.githubusercontent.com/u/2993352?v=3","gravatar_id":"","url":"https://api.github.com/users/m-seikou","html_url":"https://github.com/m-seikou","followers_url":"https://api.github.com/users/m-seikou/followers","following_url":"https://api.github.com/users/m-seikou/following{/other_user}","gists_url":"https://api.github.com/users/m-seikou/gists{/gist_id}","starred_url":"https://api.github.com/users/m-seikou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-seikou/subscriptions","organizations_url":"https://api.github.com/users/m-seikou/orgs","repos_url":"https://api.github.com/users/m-seikou/repos","events_url":"https://api.github.com/users/m-seikou/events{/privacy}","received_events_url":"https://api.github.com/users/m-seikou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T11:29:05Z","updated_at":"2016-11-03T11:29:05Z","closed_at":null,"body":"チェック対象の値をコンストラクタの引数にしてインスタンス生成する\r\n\r\n*** 定義\r\n```yaml\r\ntype: constract\r\nclass: \\hoge\r\n```\r\n\r\n*** 実際に呼ばれるコード\r\n```php\r\nreturn new \\hoge($value);\r\n```\r\n\r\n`$validator->check();` で該当箇所を`\\hoge`のインスタンスに変える。細かなチェックは`hoge::__constract()\r\n`内でチェックしてエラーは`hashValidatorException.php`をthrow。"}}
{"actor":{"display_login":"m-seikou"}}