booking = $booking; $this->meeting = new Appointment( $booking->get_appointment() ); $this->staff = new Staff( $booking->get_staff_id() ); $this->customer = new Customer( $booking->get_customer_id() ); apply_filters( 'timeics/booking/update', $booking, $this ); parent::__construct(); } /** * Get email recipient * * @return string */ public function get_recipient() { return $this->staff->get_email(); } /** * Get new event email * * @return string */ public function get_subject() { return $this->meeting->get_name(); } /** * Get email title * * @return string */ public function get_title() { return $this->meeting->get_name(); } /** * Get template new event email * * @return string */ public function get_template() { return TIMETICS_PLUGIN_DIR . '/templates/emails/update-event.php'; } }