BookingUtils
in package
Tags
Table of Contents
- getFakeBooking() : Booking
- getReservedRoomTypesList() : array<string|int, mixed>
- getTestBooking() : Booking
- resetBooking() : mixed
- Prevent all new emails from appearing in customer's mailbox. Prevent all new logs from appearing in booking logs.
Methods
getFakeBooking()
public
static getFakeBooking() : Booking
Tags
Return values
Booking —getReservedRoomTypesList()
public
static getReservedRoomTypesList(Booking $booking[, string|null $language = null ][, bool $translateIds = true ]) : array<string|int, mixed>
Parameters
- $booking : Booking
- $language : string|null = null
-
Optional. Language code, "original" (get the title on default language) or NULL (use current language translation). NULL by default (current language).
- $translateIds : bool = true
-
Optional. TRUE by default.
Tags
Return values
array<string|int, mixed> —[Room type ID => Room type title]
getTestBooking()
public
static getTestBooking() : Booking
Tags
Return values
Booking —resetBooking()
Prevent all new emails from appearing in customer's mailbox. Prevent all new logs from appearing in booking logs.
public
static resetBooking(Booking $booking) : mixed
Parameters
- $booking : Booking