Price model
Model class exposing price properties like title, price, currency
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
getChangedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getCreatedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getCurrency() : string
Returns an alphanumeric currency code according to ISO 4217.
string
getId() : integer
integer
getNetPrice() : float
float
getPrice() : float
float
getTitle() : string
string
isDeleted() : boolean
Denotes that the price has been deleted and is no longer available for booking.
boolean
True if this price has been deleted
isDiscountPrice() : boolean
Discount prices cannot be selected directly but are automatically chosen if a matching discount code was entered.
boolean
isHidden() : boolean
Hidden prices are not directly selectable for customers but represent the price that is charged when a ticket is added indirectly via sideevent selection or when booked as a package.
boolean
isPackagePrice() : boolean
boolean
isSideeventPrice() : 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