| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\Emails; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | use Timetics\Core\Appointments\Appointment; |
| 10 | 12 | use Timetics\Core\Bookings\Booking; |
| 11 | 13 | use Timetics\Core\Customers\Customer; |
| 12 | 14 | use Timetics\Core\Staffs\Staff; |
| @@ -24,9 +26,16 @@ | ||
| 24 | 26 | * Store staff object |
| 25 | 27 | * |
| 26 | 28 | * @var Object |
| 27 | 29 | */ |
| 28 | - public $staff; | |
| 30 | + public $staff; | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * Store event object | |
| 34 | + * | |
| 35 | + * @var Object | |
| 36 | + */ | |
| 37 | + public $event; | |
| 29 | 38 | |
| 30 | 39 | /** |
| 31 | 40 | * Store customer object |
| 32 | 41 | * |
| @@ -50,8 +59,10 @@ | ||
| 50 | 59 | $this->booking = $booking; |
| 51 | 60 | $this->meeting = new Appointment( $booking->get_appointment() ); |
| 52 | 61 | $this->staff = new Staff( $booking->get_staff_id() ); |
| 53 | 62 | $this->customer = new Customer( $booking->get_customer_id() ); |
| 63 | + | |
| 64 | + apply_filters( 'timetics/booking/update', $booking, $this ); | |
| 54 | 65 | |
| 55 | 66 | parent::__construct(); |
| 56 | 67 | } |
| 57 | 68 | |