BasketItem model
Model class representing a single item (ticket) of a NextEvent basket
| 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 |
|
|---|
arrayThe source data as received from the API
addChildItem(\NextEvent\PHPSDK\Model\BasketItem $item)
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
getCategory() : \NextEvent\PHPSDK\Model\Category
getChildren() : array
Child items represent additional basket items like ticket options, side events, etc. which are coupled with the given basket item and cannot be booked individually.
They also contribute to the overall price and may or may not be listed in a basket summary.
arrayList of nested BasketItems
getDescription(string $delimiter = ' - ') : string
The description is composed from the associated category and price titles
stringCharacter(s) used to separate description segments
string
getDiscountCode() : \NextEvent\PHPSDK\Model\DiscountCode|null
getEditSteps() : array
arrayList with hash arrays describing available editing steps:
['label' => '
getEventId() : string
stringeventId
getEventTitle() : string
string
getId() : integer
integer
getInfo() : string|null
string|null
getOrderId() : integer
integerorderId
getPrice() : \NextEvent\PHPSDK\Model\Price
getSeat() : \NextEvent\PHPSDK\Model\Seat|null
getType() : string
stringEither 'ticket' or 'addition'
getUuid() : string
stringUUID
hasInfo() : boolean
booleanTrue if additional information is available
hasSeat() : boolean
| deprecated |
since 1.4.0 |
|---|---|
booleanTrue if this is a seated ticket and seat information is available
isDeleted() : boolean
Rebookig items have the deleted flag set if they are subject to be cancelled from the order.
booleanTrue if this item has been flagged for deletion
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