Booking implements EntityInterface, EventInterface uses EventTrait
Table of Contents
Interfaces
Methods
- __construct() : mixed
- doEventsIntersect() : bool
- getClientCollection() : ClientCollection
- getCounter() : int
- getCounters() : array<string|int, mixed>
- getCreatedAt() : int|null
- getCreatedBy() : int|null
- getDatePeriod() : DatePeriod|null
- getDescription() : string|null
- getEventDatePeriod() : DatePeriod
- getEventRrule() : Rrule|null
- getExternalDataCollection() : ExternalDataCollection
- getId() : int|null
- getMaxDate() : DateTimeImmutable|null
- getName() : string|null
- getNote() : string|null
- getParent() : self|null
- getPrimaryClient() : Client|null
- getPrimaryClientUrl() : string
- getPrimaryResource() : resource|null
- Returns primary resource from resource collection Primary resource is used for obtaining notification settings for a certain booking We are currently expecting that the first item from resource collection is primary
- getResourceCollection() : ResourceCollection
- getRrule() : string|null
- getUpdatedAt() : int|null
- getVisitStatus() : BookingVisitStatus
- isAutoConfirmed() : bool
- isConfirmed() : bool|null
- isDelayed() : bool
- isDeleted() : bool|null
- isEventRecurring() : bool
- isVisitStatusKnown() : bool
- mapFromArray() : self
- setClientCollection() : Booking
- setConfirmed() : self
- setCounter() : self
- setCounters() : self
- setCreatedAt() : self
- setCreatedBy() : self
- setDatePeriod() : self
- setDeleted() : self
- setDescription() : self
- setExternalDataCollection() : self
- setId() : self
- setName() : self
- setNote() : self
- setParent() : self
- setResourceCollection() : self
- setRrule() : self
- setUpdatedAt() : self
- setVisitStatus() : self
- toArray() : array<string|int, mixed>
Methods
__construct()
public
__construct() : mixed
doEventsIntersect()
public
doEventsIntersect(EventInterface $event) : bool
Parameters
- $event : EventInterface
Return values
boolgetClientCollection()
public
getClientCollection() : ClientCollection
Return values
ClientCollectiongetCounter()
public
getCounter() : int
Return values
intgetCounters()
public
getCounters() : array<string|int, mixed>
Return values
array<string|int, mixed>getCreatedAt()
public
getCreatedAt() : int|null
Return values
int|nullgetCreatedBy()
public
getCreatedBy() : int|null
Return values
int|nullgetDatePeriod()
public
getDatePeriod() : DatePeriod|null
Return values
DatePeriod|nullgetDescription()
public
getDescription() : string|null
Return values
string|nullgetEventDatePeriod()
public
getEventDatePeriod() : DatePeriod
Return values
DatePeriodgetEventRrule()
public
getEventRrule() : Rrule|null
Return values
Rrule|nullgetExternalDataCollection()
public
getExternalDataCollection() : ExternalDataCollection
Return values
ExternalDataCollectiongetId()
public
getId() : int|null
Return values
int|nullgetMaxDate()
public
getMaxDate() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetName()
public
getName() : string|null
Return values
string|nullgetNote()
public
getNote() : string|null
Return values
string|nullgetParent()
public
getParent() : self|null
Return values
self|nullgetPrimaryClient()
public
getPrimaryClient() : Client|null
Return values
Client|nullgetPrimaryClientUrl()
public
getPrimaryClientUrl() : string
Return values
stringgetPrimaryResource()
Returns primary resource from resource collection Primary resource is used for obtaining notification settings for a certain booking We are currently expecting that the first item from resource collection is primary
public
getPrimaryResource() : resource|null
Return values
resource|nullgetResourceCollection()
public
getResourceCollection() : ResourceCollection
Return values
ResourceCollectiongetRrule()
public
getRrule() : string|null
Return values
string|nullgetUpdatedAt()
public
getUpdatedAt() : int|null
Return values
int|nullgetVisitStatus()
public
getVisitStatus() : BookingVisitStatus
Return values
BookingVisitStatusisAutoConfirmed()
public
isAutoConfirmed() : bool
Return values
boolisConfirmed()
public
isConfirmed() : bool|null
Return values
bool|nullisDelayed()
public
isDelayed() : bool
Return values
boolisDeleted()
public
isDeleted() : bool|null
Return values
bool|nullisEventRecurring()
public
isEventRecurring() : bool
Return values
boolisVisitStatusKnown()
public
isVisitStatusKnown() : bool
Return values
boolmapFromArray()
public
static mapFromArray(array<string|int, mixed> $props) : self
Parameters
- $props : array<string|int, mixed>
Return values
selfsetClientCollection()
public
setClientCollection(ClientCollection $clientCollection) : Booking
Parameters
- $clientCollection : ClientCollection
Return values
BookingsetConfirmed()
public
setConfirmed(bool $confirmed) : self
Parameters
- $confirmed : bool
Return values
selfsetCounter()
public
setCounter(int $value) : self
Parameters
- $value : int
Return values
selfsetCounters()
public
setCounters(array<string|int, mixed> $counters) : self
Parameters
- $counters : array<string|int, mixed>
Return values
selfsetCreatedAt()
public
setCreatedAt(int|null $createdAt) : self
Parameters
- $createdAt : int|null
Return values
selfsetCreatedBy()
public
setCreatedBy(int|null $createdBy) : self
Parameters
- $createdBy : int|null
Return values
selfsetDatePeriod()
public
setDatePeriod(DatePeriod|null $datePeriod) : self
Parameters
- $datePeriod : DatePeriod|null
Return values
selfsetDeleted()
public
setDeleted(bool $deleted) : self
Parameters
- $deleted : bool
Return values
selfsetDescription()
public
setDescription(string|null $description) : self
Parameters
- $description : string|null
Return values
selfsetExternalDataCollection()
public
setExternalDataCollection(ExternalDataCollection $externalDataCollection) : self
Parameters
- $externalDataCollection : ExternalDataCollection
Return values
selfsetId()
public
setId(int|null $id) : self
Parameters
- $id : int|null
Return values
selfsetName()
public
setName(string|null $name) : self
Parameters
- $name : string|null
Return values
selfsetNote()
public
setNote(string|null $note) : self
Parameters
- $note : string|null
Return values
selfsetParent()
public
setParent(self|null $parent) : self
Parameters
- $parent : self|null
Return values
selfsetResourceCollection()
public
setResourceCollection(ResourceCollection $resourceCollection) : self
Parameters
- $resourceCollection : ResourceCollection
Return values
selfsetRrule()
public
setRrule(string|null $rrule) : self
Parameters
- $rrule : string|null
Return values
selfsetUpdatedAt()
public
setUpdatedAt(int|null $updatedAt) : self
Parameters
- $updatedAt : int|null
Return values
selfsetVisitStatus()
public
setVisitStatus(BookingVisitStatus $visitStatus) : self
Parameters
- $visitStatus : BookingVisitStatus
Return values
selftoArray()
public
toArray() : array<string|int, mixed>