BasketWarningAttributeFactory
extends Factory
in package
This class will return the kind of basket warning attribute we need.
Tags
Table of Contents
CLASS_PREFIX | = 'BasketWarning' | |
---|---|---|
CLASS_SUFFIX | = 'Attribute' | |
NAMESPACE | = 'SDK\\Dtos\\Basket\\BasketWarnings' | |
TYPE | = 'type' | |
getElement() | Returns the needed element. | : Element|null |
getWarningAttribute() | Returns the needed type of basket warning. | : BasketWarningAttribute|null |
defaultReturnValue() | : Element|null | |
getClassName() | : string | |
getItem() | : Element|null | |
prepareClassName() | : string |
Constants
CLASS_PREFIX
protected
mixed
CLASS_PREFIX
= 'BasketWarning'
CLASS_SUFFIX
protected
mixed
CLASS_SUFFIX
= 'Attribute'
NAMESPACE
protected
mixed
NAMESPACE
= 'SDK\\Dtos\\Basket\\BasketWarnings'
TYPE
protected
mixed
TYPE
= 'type'
Methods
getElement()
Returns the needed element.
public
static getElement([array<string|int, mixed> $data = [] ]) : Element|null
Parameters
- $data : array<string|int, mixed> = []
Tags
Return values
Element|null —getWarningAttribute()
Returns the needed type of basket warning.
public
static getWarningAttribute([array<string|int, mixed> $data = [] ]) : BasketWarningAttribute|null
Parameters
- $data : array<string|int, mixed> = []
Return values
BasketWarningAttribute|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