BasketWarningAttribute
extends Element
in package
Uses
EnumResolverTrait
This is the basket warning attribute base class.
The basket voucher groups information will be stored in that class and will remain immutable (only get methods are available)
Tags
Table of Contents
$error | : Error|null | |
---|---|---|
$key | : string | |
$type | : string | |
getError() | Returns the current element error (if there is error). | : Error|null |
getKey() | Returns the attribute key value. | : string |
getType() | Returns the attribute type. | : string |
getValue() | : mixed | |
getDefaultType() | : string | |
setError() | : void | |
setValue() | : void |
Properties
$error
protected
Error|null
$error
= null
$key
protected
string
$key
= ''
$type
protected
string
$type
= ''
Methods
getError()
Returns the current element error (if there is error).
public
getError() : Error|null
Return values
Error|null —getKey()
Returns the attribute key value.
public
getKey() : string
Return values
string —getType()
Returns the attribute type.
public
getType() : string
Return values
string —getValue()
public
abstract getValue() : mixed
Return values
mixed —getDefaultType()
protected
abstract getDefaultType() : string
Return values
string —setError()
protected
setError(mixed $error) : void
Parameters
- $error : mixed
Return values
void —setValue()
protected
abstract setValue(mixed $value) : void
Parameters
- $value : mixed