You are here

public function PricingEvent::__construct in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Constructs a BookingPrice item.

Parameters

int $unit_id: The unit ID.

int $amount: The booking amount.

DateTime $start_date: The start date of the event.

DateTime $end_date: The start date of the event.

string $operation: The operation to perform.

File

modules/rooms_pricing/includes/rooms_pricing.pricing_event.inc, line 38
contains PricingEvent.

Class

PricingEvent
@file contains PricingEvent.

Code

public function __construct($unit_id, $amount, $start_date, $end_date, $operation = '') {
  $this->unit_id = $unit_id;
  $this->amount = $amount;
  $this->start_date = $start_date;
  $this->end_date = $end_date;
  $this->operation = $operation;
}