You are here

protected function PricingEvent::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_pricing/includes/rooms_pricing.pricing_event.inc, line 49
contains PricingEvent.

Class

PricingEvent
@file contains PricingEvent.

Code

protected function createEvent(DateTime $start_date, DateTime $end_date) {
  return new PricingEvent($this->unit_id, $this->amount, $start_date, $end_date, $this->operation);
}