Reservation
extends AbstractUniqueEntity
in package
Tags
Table of Contents
- $bookingId : int
- $bufferTime : TimePeriod
- $capacity : int
- $date : DateTime
- $employeeId : int
- $id : int
- $locationId : int
- $price : float
- $serviceId : int
- $serviceTime : TimePeriod
- $uid : string
- Unique identifier. Most likely is UUID v4.
- $sentNotificationIds : array<string|int, int>
- __construct() : mixed
- getBooking() : Booking|null
- getBookingId() : int
- getBufferTime() : TimePeriod
- getCapacity() : int
- getDate() : DateTime
- getEmployeeId() : int
- getId() : int
- getLocationId() : int
- getPrice() : float
- getSentNotificationIds() : array<string|int, int>
- getServiceId() : int
- getServiceTime() : TimePeriod
- getUid() : string
- setupFields() : mixed
Properties
$bookingId
public
int
$bookingId
= 0
Tags
$bufferTime
public
TimePeriod
$bufferTime
= null
Tags
$capacity
public
int
$capacity
= 1
Tags
$date
public
DateTime
$date
= null
Tags
$employeeId
public
int
$employeeId
= 0
Tags
$id
public
int
$id
= 0
Tags
$locationId
public
int
$locationId
= 0
Tags
$price
public
float
$price
= 0.0
Tags
$serviceId
public
int
$serviceId
= 0
Tags
$serviceTime
public
TimePeriod
$serviceTime
= null
Tags
$uid
Unique identifier. Most likely is UUID v4.
public
string
$uid
= ''
Tags
$sentNotificationIds
protected
array<string|int, int>
$sentNotificationIds
= []
Tags
Methods
__construct()
public
__construct(int $id[, array<string|int, mixed> $fieldValues = [] ]) : mixed
Parameters
- $id : int
- $fieldValues : array<string|int, mixed> = []
-
Optional.
Tags
Return values
mixed —getBooking()
public
getBooking([mixed $forceReload = false ]) : Booking|null
Parameters
- $forceReload : mixed = false
Tags
Return values
Booking|null —getBookingId()
public
getBookingId() : int
Tags
Return values
int —getBufferTime()
public
getBufferTime() : TimePeriod
Tags
Return values
TimePeriod —getCapacity()
public
getCapacity() : int
Tags
Return values
int —getDate()
public
getDate() : DateTime
Tags
Return values
DateTime —getEmployeeId()
public
getEmployeeId() : int
Tags
Return values
int —getId()
public
getId() : int
Tags
Return values
int —getLocationId()
public
getLocationId() : int
Tags
Return values
int —getPrice()
public
getPrice() : float
Tags
Return values
float —getSentNotificationIds()
public
getSentNotificationIds() : array<string|int, int>
Tags
Return values
array<string|int, int> —getServiceId()
public
getServiceId() : int
Tags
Return values
int —getServiceTime()
public
getServiceTime() : TimePeriod
Tags
Return values
TimePeriod —getUid()
public
getUid() : string
Tags
Return values
string —setupFields()
protected
setupFields( $fieldValues) : mixed