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