{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/429","labels_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/429/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/429/events","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/429","id":75533736,"number":429,"title":"Simplifying usage","user":{"login":"hassankhan","id":1781985,"avatar_url":"https://avatars.githubusercontent.com/u/1781985?v=3","gravatar_id":"","url":"https://api.github.com/users/hassankhan","html_url":"https://github.com/hassankhan","followers_url":"https://api.github.com/users/hassankhan/followers","following_url":"https://api.github.com/users/hassankhan/following{/other_user}","gists_url":"https://api.github.com/users/hassankhan/gists{/gist_id}","starred_url":"https://api.github.com/users/hassankhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassankhan/subscriptions","organizations_url":"https://api.github.com/users/hassankhan/orgs","repos_url":"https://api.github.com/users/hassankhan/repos","events_url":"https://api.github.com/users/hassankhan/events{/privacy}","received_events_url":"https://api.github.com/users/hassankhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-12T09:22:08Z","updated_at":"2015-05-13T11:06:17Z","closed_at":null,"body":"Could `GraphObject` at least use the `__get()` magic method rather than forcing everyone to use `getProperty()` every time?\r\n\r\nDoing it this way, all subclasses will automatically get the same (IMO useful) behaviour"},"comment":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/comments/101629344","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/429#issuecomment-101629344","issue_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/429","id":101629344,"user":{"login":"hassankhan","id":1781985,"avatar_url":"https://avatars.githubusercontent.com/u/1781985?v=3","gravatar_id":"","url":"https://api.github.com/users/hassankhan","html_url":"https://github.com/hassankhan","followers_url":"https://api.github.com/users/hassankhan/followers","following_url":"https://api.github.com/users/hassankhan/following{/other_user}","gists_url":"https://api.github.com/users/hassankhan/gists{/gist_id}","starred_url":"https://api.github.com/users/hassankhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassankhan/subscriptions","organizations_url":"https://api.github.com/users/hassankhan/orgs","repos_url":"https://api.github.com/users/hassankhan/repos","events_url":"https://api.github.com/users/hassankhan/events{/privacy}","received_events_url":"https://api.github.com/users/hassankhan/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T11:06:17Z","updated_at":"2015-05-13T11:06:17Z","body":"From a consumer point-of-view, it's needlessly complex. I don't care enough to argue about it, but asking users (who are already struggling to learn how to use the SDK) to create their own object just to be able to get what are already essentially properties on the item. If magic methods are out of the question, what about making `GraphObject` extend `ArrayAccess` then?"}}