StepBooking
extends Step
in package
Table of Contents
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $customer : Customer
- $errors : array<string|int, mixed>
- $gatewayId : string
- $isAlreadyBooked : bool
- $isCorrectData : bool
- $isCorrectPaymentData : bool
- $isValidStep : mixed
- $unableToCreateBooking : bool
- $booking : Booking
- $checkoutId : string
- Checkout ID (maybe checkout ID of $unfinishedBooking).
- $reservedRooms : array<string|int, ReservedRoom>
- $unfinishedBooking : Booking|null
- Booked before clicking "Back" button in browser (reserved, but not completed). We can use it's reserved rooms.
- $unfinishedRooms : array<string|int, mixed>
- Rooms from $unfinishedBooking. Still available if the current checkout ID equals to $unfinishedBooking->checkoutId.
- parseRoomRate() : bool
- render() : mixed
- setup() : mixed
- showErrorsMessage() : mixed
- cleanUnfinished() : mixed
- createCustomer() : int|WP_Error
- createPayment() : Payment|null
- parseBookingData() : bool
- parseCheckInDate() : bool
- parseCheckOutDate() : bool
- parseCheckoutId() : mixed
- parseCustomerData() : bool
- parseGatewayId() : bool
- parsePaymentData() : bool
- parsePaymentMethodFields() : mixed
- parseUnfinishedBookingData() : mixed
- showAlreadyBookedMessage() : mixed
- showSuccessMessage() : mixed
- stepValid() : mixed
Properties
$checkInDate
protected
DateTime
$checkInDate
$checkOutDate
protected
DateTime
$checkOutDate
$customer
protected
Customer
$customer
$errors
protected
array<string|int, mixed>
$errors
= array()
$gatewayId
protected
string
$gatewayId
$isAlreadyBooked
protected
bool
$isAlreadyBooked
= false
$isCorrectData
protected
bool
$isCorrectData
= false
$isCorrectPaymentData
protected
bool
$isCorrectPaymentData
= false
$isValidStep
protected
mixed
$isValidStep
= false
$unableToCreateBooking
protected
bool
$unableToCreateBooking
= false
$booking
private
Booking
$booking
$checkoutId
Checkout ID (maybe checkout ID of $unfinishedBooking).
private
string
$checkoutId
= ''
$reservedRooms
private
array<string|int, ReservedRoom>
$reservedRooms
= array()
$unfinishedBooking
Booked before clicking "Back" button in browser (reserved, but not completed). We can use it's reserved rooms.
private
Booking|null
$unfinishedBooking
= null
$unfinishedRooms
Rooms from $unfinishedBooking. Still available if the current checkout ID equals to $unfinishedBooking->checkoutId.
private
array<string|int, mixed>
$unfinishedRooms
= array()
Methods
parseRoomRate()
public
parseRoomRate() : bool
Return values
bool —render()
public
render() : mixed
Return values
mixed —setup()
public
setup() : mixed
Return values
mixed —showErrorsMessage()
public
showErrorsMessage() : mixed
Return values
mixed —cleanUnfinished()
protected
cleanUnfinished() : mixed
Return values
mixed —createCustomer()
protected
createCustomer() : int|WP_Error
Tags
Return values
int|WP_Error —createPayment()
protected
createPayment(Booking $booking) : Payment|null
Parameters
- $booking : Booking
Return values
Payment|null —parseBookingData()
protected
parseBookingData() : bool
Tags
Return values
bool —parseCheckInDate()
protected
parseCheckInDate() : bool
Tags
Return values
bool —parseCheckOutDate()
protected
parseCheckOutDate() : bool
Tags
Return values
bool —parseCheckoutId()
protected
parseCheckoutId() : mixed
Return values
mixed —parseCustomerData()
protected
parseCustomerData() : bool
Tags
Return values
bool —parseGatewayId()
protected
parseGatewayId() : bool
Return values
bool —parsePaymentData()
protected
parsePaymentData() : bool
Return values
bool —parsePaymentMethodFields()
protected
parsePaymentMethodFields() : mixed
Return values
mixed —parseUnfinishedBookingData()
protected
parseUnfinishedBookingData() : mixed
Return values
mixed —showAlreadyBookedMessage()
protected
showAlreadyBookedMessage() : mixed
Return values
mixed —showSuccessMessage()
protected
showSuccessMessage() : mixed
Return values
mixed —stepValid()
protected
stepValid() : mixed