Adding possibility to use php magic methods __get for retrieving attributes