{"action":"created","issue":{"url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/7","labels_url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/7/comments","events_url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/7/events","html_url":"https://github.com/beyerz/OpenGraphProtocolBundle/pull/7","id":127264350,"number":7,"title":"Use last static binding","user":{"login":"Grummfy","id":668804,"avatar_url":"https://avatars.githubusercontent.com/u/668804?v=3","gravatar_id":"","url":"https://api.github.com/users/Grummfy","html_url":"https://github.com/Grummfy","followers_url":"https://api.github.com/users/Grummfy/followers","following_url":"https://api.github.com/users/Grummfy/following{/other_user}","gists_url":"https://api.github.com/users/Grummfy/gists{/gist_id}","starred_url":"https://api.github.com/users/Grummfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grummfy/subscriptions","organizations_url":"https://api.github.com/users/Grummfy/orgs","repos_url":"https://api.github.com/users/Grummfy/repos","events_url":"https://api.github.com/users/Grummfy/events{/privacy}","received_events_url":"https://api.github.com/users/Grummfy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T16:40:14Z","updated_at":"2016-01-18T22:09:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/pulls/7","html_url":"https://github.com/beyerz/OpenGraphProtocolBundle/pull/7","diff_url":"https://github.com/beyerz/OpenGraphProtocolBundle/pull/7.diff","patch_url":"https://github.com/beyerz/OpenGraphProtocolBundle/pull/7.patch"},"body":"This allow to extends class easyly"},"comment":{"url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/comments/172667516","html_url":"https://github.com/beyerz/OpenGraphProtocolBundle/pull/7#issuecomment-172667516","issue_url":"https://api.github.com/repos/beyerz/OpenGraphProtocolBundle/issues/7","id":172667516,"user":{"login":"beyerz","id":4946849,"avatar_url":"https://avatars.githubusercontent.com/u/4946849?v=3","gravatar_id":"","url":"https://api.github.com/users/beyerz","html_url":"https://github.com/beyerz","followers_url":"https://api.github.com/users/beyerz/followers","following_url":"https://api.github.com/users/beyerz/following{/other_user}","gists_url":"https://api.github.com/users/beyerz/gists{/gist_id}","starred_url":"https://api.github.com/users/beyerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyerz/subscriptions","organizations_url":"https://api.github.com/users/beyerz/orgs","repos_url":"https://api.github.com/users/beyerz/repos","events_url":"https://api.github.com/users/beyerz/events{/privacy}","received_events_url":"https://api.github.com/users/beyerz/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T22:09:22Z","updated_at":"2016-01-18T22:09:22Z","body":"@Grummfy , Hi and thanks for this pull request.\r\n\r\nThe original Idea was to provide basic instances of each ogp type that could be easily extended, this means that the calling class function needs to be implemented.\r\n\r\nMy concern here is that the requirement to get the calling class variables. Using __CLASS__ will represent the current class and not the calling class.\r\n\r\nHowever the late static binding concept could work if we switch the calling function to a static and then call it using self::metaToArray()\r\n\r\nAlso as a side note, I need to add some test cases here as this might make the concept clearer."}}