add function to generate php getters/setters