id = 'booking_cancelled'; /** * Email title. * * @var string */ $this->title = __('Booking Cancelled', 'advanced-connector-for-uplisting'); /** * Email description. * * @var string */ $this->description = __('Sent to the guest when a booking is cancelled.', 'advanced-connector-for-uplisting'); /** * Email subject. * * @var string */ $this->subject = __('Booking Cancelled - {property_title}', 'advanced-connector-for-uplisting'); /** * Email heading. * * @var string */ $this->heading = __('Booking Cancelled', 'advanced-connector-for-uplisting'); /** * Email template. * * @var string */ $this->template = 'customer/booking-cancelled'; } /** * Guest email address from the booking. * * @since 1.0.0 * @param BookingDetails $booking Booking model. * @return string */ public function get_recipient(BookingDetails $booking): string { $email = $booking->get_email(); return is_email($email) ? (string) $email : ''; } }