ShipmentFactory
extends Factory
in package
This class will return the kind of shipment we need.
Tags
Table of Contents
getElement() | Returns the needed element. | : Element|null |
---|---|---|
getShipment() | Returns the needed type of shipment. | : BaseShipment|null |
defaultReturnValue() | : Element|null | |
getClassName() | : string | |
getItem() | : Element|null | |
prepareClassName() | : string |
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 —getShipment()
Returns the needed type of shipment.
public
static getShipment([array<string|int, mixed> $data = [] ]) : BaseShipment|null
Parameters
- $data : array<string|int, mixed> = []
Return values
BaseShipment|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