/
AppointmentSetEvent.php
56 lines (47 loc) · 1.07 KB
/
AppointmentSetEvent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/*
*
* @package OpenEMR
* @link https://www.open-emr.org
*
* @author Sherwin Gaddis <sherwingaddis@gmail.com>
* @copyright Copyright (c) 2021 Sherwin Gaddis <sherwingaddis@gmail.com>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*
*/
namespace OpenEMR\Events\Appointments;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Event object for know what type of appointment has been set on the calendar
*
* @package OpenEMR\Events
* @subpackage Appointments
*
*/
class AppointmentSetEvent extends Event
{
/**
* This event is triggered after a new patient appointment has been scheduled
*/
const EVENT_HANDLE = 'appointment.set';
/**
* @var
*/
private $post;
public $eid;
public function __construct($post)
{
$this->post = $post;
}
/**
* @return array
*/
public function givenAppointmentData(): array
{
return $this->post;
}
public function setEventId($eid)
{
$this->eid = $eid;
}
}