getID()); } /**************************************** * Getters ****************************************/ /** * Get the filename of the picture (absolute path from filesystem root). * * @return string the saved filename in the DB * * an empty string if there is no picture */ public function getFilename(): string { return $this->filename; } /** * Get the filename of the 3d model (absolute path from filesystem root). * @return string * the absolute path to the model (from filesystem root), as a UNIX path (with slashes) * * an empty string if there is no model */ public function get3dFilename(): string { return $this->filename_3d; } /******************************************************************************** * * Setters * *********************************************************************************/ /** * Change the filename of this footprint. * @param string $new_filename The new file name * @return Footprint */ public function setFilename(string $new_filename): self { $this->filename = $new_filename; return $this; } /** * Change the 3d model filename of this footprint. * @param string $new_filename The new filename * * @return Footprint */ public function set3dFilename(string $new_filename): self { $this->filename = $new_filename; return $this; } }