Reservation extends AbstractUniqueEntity
in package

Tags
since
1.0

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
since
1.0

$bufferTime

public TimePeriod $bufferTime = null
Tags
since
1.0

$capacity

public int $capacity = 1
Tags
since
1.0

$date

public DateTime $date = null
Tags
since
1.0

$employeeId

public int $employeeId = 0
Tags
since
1.0

$id

public int $id = 0
Tags
since
1.0

$locationId

public int $locationId = 0
Tags
since
1.0

$price

public float $price = 0.0
Tags
since
1.0

$serviceId

public int $serviceId = 0
Tags
since
1.0

$serviceTime

public TimePeriod $serviceTime = null
Tags
since
1.0

$uid

Unique identifier. Most likely is UUID v4.

public string $uid = ''
Tags
since
1.5.0

$sentNotificationIds

protected array<string|int, int> $sentNotificationIds = []
Tags
since
1.13.0

Methods

__construct()

public __construct(int $id[, array<string|int, mixed> $fieldValues = [] ]) : mixed
Parameters
$id : int
$fieldValues : array<string|int, mixed> = []

Optional.

Tags
since
1.0
Return values
mixed

getBooking()

public getBooking([mixed $forceReload = false ]) : Booking|null
Parameters
$forceReload : mixed = false
Tags
since
1.0
since
1.13.0

added the $forceReload argument.

Return values
Booking|null

getBookingId()

public getBookingId() : int
Tags
since
1.13.0
Return values
int

getBufferTime()

public getBufferTime() : TimePeriod
Tags
since
1.13.0
Return values
TimePeriod

getCapacity()

public getCapacity() : int
Tags
since
1.13.0
Return values
int

getDate()

public getDate() : DateTime
Tags
since
1.11.0
Return values
DateTime

getEmployeeId()

public getEmployeeId() : int
Tags
since
1.13.0
Return values
int

getId()

public getId() : int
Tags
since
1.11.0
Return values
int

getLocationId()

public getLocationId() : int
Tags
since
1.13.0
Return values
int

getPrice()

public getPrice() : float
Tags
since
1.11.0
Return values
float

getSentNotificationIds()

public getSentNotificationIds() : array<string|int, int>
Tags
since
1.13.0
Return values
array<string|int, int>

getServiceId()

public getServiceId() : int
Tags
since
1.11.0
Return values
int

getServiceTime()

public getServiceTime() : TimePeriod
Tags
since
1.13.0
Return values
TimePeriod

getUid()

public getUid() : string
Tags
since
1.5.0
Return values
string

setupFields()

protected setupFields( $fieldValues) : mixed
Parameters
$fieldValues :
Tags
since
1.0
Return values
mixed

Search results