Order model
Represents an order record retrieved from the API.
| 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
allTicketsIssued() : boolean
As opposed to hasTickets(), this only returns true
if tickets for this order are available AND have been issued
as PDF documents.
boolean
                                                                    expectDocuments() : boolean
boolean
                                                                    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
                                                                    getCurrency() : string
stringISO 4217 currency code
getDocuments() : array
arrayof OrderDocument models
getExpires() : \NextEvent\PHPSDK\Model\DateTime|null
Can be null if the orders has no specific expiration date
\NextEvent\PHPSDK\Model\DateTime|null
                                                                    getId() : integer
integerorderId
getOrderDate() : \NextEvent\PHPSDK\Model\DateTime|null
getOrderItems() : array<mixed,\NextEvent\PHPSDK\Model\OrderItem>
getState() : string
Possible values are: payment, reservation, completed, aborted, replaced, cancelled
string
                                                                    getTickets( $force = false) : array<mixed,\NextEvent\PHPSDK\Model\Ticket>
| Throws | 
                                                    
  | 
                                            
|---|
                                            array<mixed,\NextEvent\PHPSDK\Model\Ticket>
                                                                    getTotal() : float
float
                                                                    getUuid() : string
stringUUID
hasDocuments() : boolean
This chech includes tickets
boolean
                                                                    hasTickets() : boolean
boolean
                                                                    isComplete() : boolean
boolean
                                                                    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