protected function BookingEvent::createEvent in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Creates a new event
Parameters
DateTime $start_date: The new event start date.
DateTime $end_date: The new event end date.
Return value
RoomsEventInterface The new event created.
Overrides RoomsEvent::createEvent
File
- modules/
rooms_availability/ includes/ rooms_availability.booking_event.inc, line 39 - Class BookingEvent
Class
- BookingEvent
- @file Class BookingEvent
Code
protected function createEvent(DateTime $start_date, DateTime $end_date) {
return new BookingEvent($this->unit_id, $this->id, $start_date, $end_date);
}