Create private __get method to handle get requests