OrderItem model
Model class representing a single item of a NextEvent order
see | |
---|---|
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
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.
array
List of nested BasketItems
getDescription(string $delimiter = ' - ') : string
The description is composed from the associated category and price titles
string
Character(s) used to separate description segments
string
getDiscountCode() : \NextEvent\PHPSDK\Model\DiscountCode|null
getEditSteps() : array
array
List with hash arrays describing available editing steps:
['label' => '
getEventId() : string
string
eventId
getEventTitle() : string
string
getId() : integer
integer
getInfo() : string|null
string|null
getOrderId() : integer
integer
orderId
getPrice() : \NextEvent\PHPSDK\Model\Price
getSeat() : \NextEvent\PHPSDK\Model\Seat|null
getType() : string
string
Either 'ticket' or 'addition'
getUuid() : string
string
UUID
hasInfo() : boolean
boolean
True if additional information is available
hasSeat() : boolean
deprecated |
since 1.4.0 |
---|---|
boolean
True 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.
boolean
True 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