BasketProductOptionFactory
extends Factory
in package
This class will return the kind of basket product option we need.
Tags
Table of Contents
CLASS_SUFFIX | = 'Option' | |
---|---|---|
NAMESPACE | = 'SDK\\Dtos\\Basket\\BasketRows\\Options' | |
TYPE | = 'type' | |
getElement() | Returns the needed element. | : Element|null |
getOption() | Returns the needed type of basket product option. | : Option|null |
defaultReturnValue() | : Element|null | |
getClassName() | : string | |
getItem() | : Element|null | |
prepareClassName() | : string |
Constants
CLASS_SUFFIX
protected
mixed
CLASS_SUFFIX
= 'Option'
NAMESPACE
protected
mixed
NAMESPACE
= 'SDK\\Dtos\\Basket\\BasketRows\\Options'
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> = []
Return values
Element|null —getOption()
Returns the needed type of basket product option.
public
static getOption([array<string|int, mixed> $data = [] ]) : Option|null
Parameters
- $data : array<string|int, mixed> = []
Return values
Option|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