BookingData
extends AbstractPostData
in package
Table of Contents
- $entity : Booking
- $_entity_init_state : mixed
- __construct() : mixed
- __get() : mixed
- __set() : mixed
- findById() : static|null
- getData() : array<string|int, mixed>
- getFields() : array<string|int, mixed>
- getProperties() : mixed
- getRepository() : AbstractPostRepository
- getRequiredFieldKeys() : array<string|int, mixed>
- getRequiredFields() : array<string|int, mixed>
- getSchema() : mixed
- getWritableFieldKeys() : array<string|int, mixed>
- getWritableFields() : array<string|int, mixed>
- save() : bool
- appendPricesTaxesFees() : array<string|int, mixed>
- fillEmptyPricesTaxesFees() : mixed
- getCheckInDate() : mixed
- getCheckInTime() : mixed
- getCheckOutDate() : mixed
- getCheckOutTime() : mixed
- getCurrency() : mixed
- getCustomer() : array<string|int, mixed>
- getDateCreated() : mixed
- getDateCreatedUtc() : mixed
- getDateModified() : mixed
- getDateModifiedUtc() : mixed
- getIcalDescription() : mixed
- getIcalProdid() : mixed
- getIcalSummary() : mixed
- getImported() : mixed
- getInternalNotes() : mixed
- getPayments() : mixed
- getReservedAccommodations() : array<string|int, mixed>
- isDataChanged() : bool
- prepareAccommodationPrices() : array<string|int, mixed>
- setCheckInDate() : mixed
- setCheckOutDate() : mixed
- setCouponCode() : mixed
- setCustomer() : mixed
- setReservedAccommodations() : mixed
- getRateIdForAccommodationId() : int
- isAvailableDates() : bool
- parseReservedAccommodations() : array<string|int, ReservedRoom>
- parseReservedServices() : array<string|int, ReservedService>
- prepareCustomer() : Customer
- validate() : bool
Properties
$entity
public
Booking
$entity
$_entity_init_state
protected
mixed
$_entity_init_state
Methods
__construct()
public
__construct(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —__get()
public
__get( $property) : mixed
Parameters
Tags
Return values
mixed —__set()
public
__set( $property, $value) : mixed
Parameters
Tags
Return values
mixed —findById()
public
static findById(int $id) : static|null
Parameters
- $id : int
Return values
static|null —getData()
public
getData() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getFields()
public
static getFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
public
static getProperties() : mixed
Return values
mixed —getRepository()
public
static getRepository() : AbstractPostRepository
Return values
AbstractPostRepository —getRequiredFieldKeys()
public
static getRequiredFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequiredFields()
public
static getRequiredFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSchema()
public
static getSchema(mixed $title) : mixed
Parameters
- $title : mixed
Return values
mixed —getWritableFieldKeys()
public
static getWritableFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getWritableFields()
public
static getWritableFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —save()
public
save() : bool
Tags
Return values
bool —appendPricesTaxesFees()
protected
appendPricesTaxesFees( $reservedAccommodations) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —fillEmptyPricesTaxesFees()
protected
fillEmptyPricesTaxesFees(mixed $reservedAccommodations) : mixed
Parameters
- $reservedAccommodations : mixed
Return values
mixed —getCheckInDate()
protected
getCheckInDate() : mixed
Return values
mixed —getCheckInTime()
protected
getCheckInTime() : mixed
Return values
mixed —getCheckOutDate()
protected
getCheckOutDate() : mixed
Return values
mixed —getCheckOutTime()
protected
getCheckOutTime() : mixed
Return values
mixed —getCurrency()
protected
getCurrency() : mixed
Return values
mixed —getCustomer()
protected
getCustomer() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDateCreated()
protected
getDateCreated() : mixed
Return values
mixed —getDateCreatedUtc()
protected
getDateCreatedUtc() : mixed
Return values
mixed —getDateModified()
protected
getDateModified() : mixed
Return values
mixed —getDateModifiedUtc()
protected
getDateModifiedUtc() : mixed
Return values
mixed —getIcalDescription()
protected
getIcalDescription() : mixed
Return values
mixed —getIcalProdid()
protected
getIcalProdid() : mixed
Return values
mixed —getIcalSummary()
protected
getIcalSummary() : mixed
Return values
mixed —getImported()
protected
getImported() : mixed
Return values
mixed —getInternalNotes()
protected
getInternalNotes() : mixed
Return values
mixed —getPayments()
protected
getPayments() : mixed
Return values
mixed —getReservedAccommodations()
protected
getReservedAccommodations() : array<string|int, mixed>
Return values
array<string|int, mixed> —isDataChanged()
protected
isDataChanged() : bool
Return values
bool —prepareAccommodationPrices()
protected
prepareAccommodationPrices(array<string|int, mixed> $accommodationPrices) : array<string|int, mixed>
Parameters
- $accommodationPrices : array<string|int, mixed>
-
[{y-m-d} => {price_value}]
Return values
array<string|int, mixed> —[ ['date'=>{y-m-d}, 'price'=>{price_value}] ]
setCheckInDate()
protected
setCheckInDate( $date) : mixed
Parameters
Tags
Return values
mixed —setCheckOutDate()
protected
setCheckOutDate( $date) : mixed
Parameters
Tags
Return values
mixed —setCouponCode()
protected
setCouponCode(mixed $code) : mixed
Parameters
- $code : mixed
Return values
mixed —setCustomer()
protected
setCustomer(mixed $customerFields) : mixed
Parameters
- $customerFields : mixed
Return values
mixed —setReservedAccommodations()
protected
setReservedAccommodations(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —getRateIdForAccommodationId()
private
getRateIdForAccommodationId(int $accommodationId) : int
Parameters
- $accommodationId : int
Tags
Return values
int —isAvailableDates()
private
isAvailableDates(DateTime $checkInDate, DateTime $checkOutDate, Booking $booking) : bool
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $booking : Booking
Return values
bool —parseReservedAccommodations()
private
parseReservedAccommodations(array<string|int, mixed> $reservedAccommodationsRequest) : array<string|int, ReservedRoom>
Parameters
- $reservedAccommodationsRequest : array<string|int, mixed>
Tags
Return values
array<string|int, ReservedRoom> —parseReservedServices()
private
parseReservedServices(array<string|int, mixed> $reservedServicesRequest) : array<string|int, ReservedService>
Parameters
- $reservedServicesRequest : array<string|int, mixed>
Tags
Return values
array<string|int, ReservedService> —prepareCustomer()
private
prepareCustomer(array<string|int, mixed> $newCustomerData) : Customer
Parameters
- $newCustomerData : array<string|int, mixed>
-
Array with a new data about Customer
Return values
Customer —validate()
private
validate() : bool