Ticket model
Model class representing a booked ticket
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
getDocument() : \NextEvent\PHPSDK\Model\TicketDocument
Throws |
|
---|
\NextEvent\PHPSDK\Model\TicketDocument
getEventTitle() : string
string
getId() : integer
integer
getState() : string
string
Either one of 'new', 'issued', 'revoked'
hasDocument() : boolean
boolean
isIssued() : boolean
Once it's issued there should be a document attached
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