Discount group model
Struct for a discount group registered in the system.
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
getAmount() : float
float
or null if a realtive factor is set
getDescription() : string
string
getDisplayname() : string
This is basically an alias for self::getTitle()
string
getFactor() : float
float
or null if an absolute amount is set
getId() : integer
integer
getTitle() : string
string
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