AppliedDiscountTotalFactory
extends AppliedDiscountFactory
in package
This class will return the kind of applied discount we need.
Tags
Table of Contents
CLASS_PREFIX | = 'AppliedDiscount' | |
---|---|---|
CLASS_SUFFIX | = 'Total' | |
NAMESPACE | = 'SDK\\Dtos\\Basket\\AppliedDiscounts' | |
TYPE | = 'type' | |
getAppliedDiscount() | Returns the needed type of applied discount. | : AppliedDiscount|null |
getElement() | Returns the needed element. | : Element|null |
defaultReturnValue() | : Element|null | |
getClassName() | : string | |
getItem() | : Element|null | |
prepareClassName() | : string |
Constants
CLASS_PREFIX
protected
mixed
CLASS_PREFIX
= 'AppliedDiscount'
CLASS_SUFFIX
protected
mixed
CLASS_SUFFIX
= 'Total'
NAMESPACE
protected
mixed
NAMESPACE
= 'SDK\\Dtos\\Basket\\AppliedDiscounts'
TYPE
protected
mixed
TYPE
= 'type'
Methods
getAppliedDiscount()
Returns the needed type of applied discount.
public
static getAppliedDiscount([array<string|int, mixed> $data = [] ]) : AppliedDiscount|null
Parameters
- $data : array<string|int, mixed> = []
Return values
AppliedDiscount|null —getElement()
Returns the needed element.
public
abstract static getElement([array<string|int, mixed> $data = [] ]) : Element|null
Parameters
- $data : array<string|int, mixed> = []
Return values
Element|null —defaultReturnValue()
protected
static defaultReturnValue(array<string|int, mixed> $data) : Element|null
Parameters
- $data : array<string|int, mixed>
Return values
Element|null —getClassName()
protected
static getClassName(string $name) : string
Parameters
- $name : string
Return values
string —getItem()
protected
static getItem([array<string|int, mixed> $data = [] ]) : Element|null
Parameters
- $data : array<string|int, mixed> = []
Return values
Element|null —prepareClassName()
protected
static prepareClassName(string $name) : string
Parameters
- $name : string