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