Adds getBoundary method to PHP class