added __get magic method to PlatformObject