New Fixes (#7770)
[openemr.git] / src / Events / PatientDocuments / PatientDocumentStoreOffsite.php
blob733ef2fd1a1bffe4ea44039962a5a2320f406e01
1 <?php
3 /**
4 * PatientDocumentStoreOffsite
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Sherwin Gaddis <sherwingaddis@gmail.com>
9 * @copyright Copyright (c) 2024 Sherwin Gaddis <sherwingaddis@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 namespace OpenEMR\Events\PatientDocuments;
15 use Symfony\Contracts\EventDispatcher\Event;
17 class PatientDocumentStoreOffsite extends Event
19 const REMOTE_STORAGE_LOCATION = 'documents.remote.storage.location';
20 private mixed $data;
21 private string $remoteFileName;
22 private string $mimeType;
23 private mixed $category;
24 private mixed $patientId;
26 public function __construct($data)
28 $this->data = $data;
30 public function getData()
32 return $this->data;
35 public function setRemoteFileName(string $filename): void
37 $this->remoteFileName = $filename;
40 public function getRemoteFileName(): string
42 return $this->remoteFileName;
45 public function setRemoteMimeType(string $mimeType): void
47 $this->mimeType = $mimeType;
50 public function getRemoteMimeType(): string
52 return $this->mimeType;
54 public function setRemoteCategory($category): void
56 $this->category = $category;
59 public function getRemoteCategory(): mixed
61 return $this->category;
64 public function setPatientId(string $patientId): void
66 $this->patientId = $patientId;
68 public function getPatientId(): mixed
70 return $this->patientId;