Category model
Struct for a category record assigned to an order/basket item.
package |
NextEvent\PHPSDK\Model |
---|
__call(string $name, array $args) : mixed
If the source of your model contains, e.g. a property named 'my_property',
you can call getMyProperty()
to retrieve it's value.
string
array
mixed
__construct(array $source)
Parse source data.
Throws |
|
---|
array
The source data as received from the API
get(string $var) : mixed
Should be used, if you expect the model to have custom properties which are not known/covered by the known getters
string
mixed
getAvailableItems() : integer|null
Reflects the categories capacity minus all blocked and sold items
integer|null
getCapacity() : integer|null
integer|null
getChangedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getCreatedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getDate() : \NextEvent\PHPSDK\Model\DateTime|null
Please note that multiple categories can return the same date/time value. In order to get a list of event dates, check for duplicates or use array_unique().
\NextEvent\PHPSDK\Model\DateTime|null
getDisplayname() : string
Use this in listing, checkout summary or invoices
string
getEventId() : string
string
getEventTitle() : string|null
string|null
getId() : integer
integer
getTitle() : string
string
isDeleted() : boolean
Denotes that the category has been deleted and is no longer available for booking.
boolean
True if this category has been deleted
isValid() : boolean
boolean
serialize() : string
Implements Serializable interface
string
toArray() : array
array
toLogContext() : array
Implements the LogContextInterface interface
array
toString() : string
string
unserialize( $serialized)
Implements Serializable interface