{"action":"created","issue":{"url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/47","repository_url":"https://api.github.com/repos/leroy-merlin-br/mongolid","labels_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/47/comments","events_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/47/events","html_url":"https://github.com/leroy-merlin-br/mongolid/pull/47","id":161591025,"number":47,"title":"Include mutators/acessors support","user":{"login":"gmsantos","id":1991286,"avatar_url":"https://avatars.githubusercontent.com/u/1991286?v=3","gravatar_id":"","url":"https://api.github.com/users/gmsantos","html_url":"https://github.com/gmsantos","followers_url":"https://api.github.com/users/gmsantos/followers","following_url":"https://api.github.com/users/gmsantos/following{/other_user}","gists_url":"https://api.github.com/users/gmsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/gmsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmsantos/subscriptions","organizations_url":"https://api.github.com/users/gmsantos/orgs","repos_url":"https://api.github.com/users/gmsantos/repos","events_url":"https://api.github.com/users/gmsantos/events{/privacy}","received_events_url":"https://api.github.com/users/gmsantos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Zizaco","id":777635,"avatar_url":"https://avatars.githubusercontent.com/u/777635?v=3","gravatar_id":"","url":"https://api.github.com/users/Zizaco","html_url":"https://github.com/Zizaco","followers_url":"https://api.github.com/users/Zizaco/followers","following_url":"https://api.github.com/users/Zizaco/following{/other_user}","gists_url":"https://api.github.com/users/Zizaco/gists{/gist_id}","starred_url":"https://api.github.com/users/Zizaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zizaco/subscriptions","organizations_url":"https://api.github.com/users/Zizaco/orgs","repos_url":"https://api.github.com/users/Zizaco/repos","events_url":"https://api.github.com/users/Zizaco/events{/privacy}","received_events_url":"https://api.github.com/users/Zizaco/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-06-22T04:23:02Z","updated_at":"2016-06-22T04:40:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/leroy-merlin-br/mongolid/pulls/47","html_url":"https://github.com/leroy-merlin-br/mongolid/pull/47","diff_url":"https://github.com/leroy-merlin-br/mongolid/pull/47.diff","patch_url":"https://github.com/leroy-merlin-br/mongolid/pull/47.patch"},"body":"(Re-target #41 to master branch  )\r\n\r\nThis make possible declare a method like the bellow on a model and this will be triggered in `__set` or `__get` magic methods:\r\n\r\n```\r\n<?php\r\n\r\nclass MyModel extends Model {\r\n    public function getSomeAttribute()\r\n    {\r\n        return 'something-else';\r\n    } \r\n    \r\n    public function setSomeAttribute($value)\r\n    {\r\n        return strtoupper($value);\r\n    } \r\n}\r\n\r\n$m = new MyModel();\r\n$m->some = 'something';  // will store 'SOMETHING' on $attributes property\r\necho $m->some;  // will return 'something-else' from getSomeAttribute\r\n```\r\n\r\nOriginal attribute could be retrieved directly from `getAttribute` method or mutator could be shut off by setting `$mutable` property to false."},"comment":{"url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/comments/227641305","html_url":"https://github.com/leroy-merlin-br/mongolid/pull/47#issuecomment-227641305","issue_url":"https://api.github.com/repos/leroy-merlin-br/mongolid/issues/47","id":227641305,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T04:40:00Z","updated_at":"2016-06-22T04:40:00Z","body":"\n[![Coverage Status](https://coveralls.io/builds/6699460/badge)](https://coveralls.io/builds/6699460)\n\nCoverage increased (+0.2%) to 91.315% when pulling **fd41086701092c240599d02382918c37533a6c8f on gmsantos:feature/mutators** into **a3ec6c14712c4a309d4cd17e54922af686b24fb7 on leroy-merlin-br:master**.\n"}}
{"actor":{"display_login":"coveralls"}}