Convert the 'document_save_to_temp_dir' utility function into a method of the Document model
Use a modern way to define classes getters & setters