public function set_filename($file) { // Store the file path locally $this->_file = $file; // Split apart at the extension if necessary if ($extension = pathinfo($file, PATHINFO_EXTENSION)) { $this->set_extension($extension); } return $this; }