ShippingInfo
in package
implements
XmlSerializable
Uses
RequestPriceUtilityTrait, EscapeXmlTrait
Class ShippingInfo
Interfaces, Classes and Traits
- XmlSerializable
- Interface XmlSerializable
Table of Contents
- DATE_FORMAT = 'd.m.Y H:i:s'
- $deliveryDate : DateTimeImmutable|null
- $eBayShippingCost : float|null
- $sendShippingMail : bool|null
- $shippingCost : float|null
- $shippingGroup : string
- $shippingMethod : string
- $shippingReturnMethod : string|null
- __construct() : mixed
- indent() : string
- Indent of serialized xml tag.
- toXmlString() : string
- XML serialization.
- convertFloatToString() : string
- Converts a float value to a string, using comma instead of point as separator.
- escapeForXml() : string|null
- Escapes the given string to be safe to be used as xml value.
- optionalsAsXml() : string
- Creates a xml string of the optional values, if they are available.
Constants
DATE_FORMAT
private
mixed
DATE_FORMAT
= 'd.m.Y H:i:s'
Properties
$deliveryDate
private
DateTimeImmutable|null
$deliveryDate
$eBayShippingCost
private
float|null
$eBayShippingCost
$sendShippingMail
private
bool|null
$sendShippingMail
$shippingCost
private
float|null
$shippingCost
$shippingGroup
private
string
$shippingGroup
$shippingMethod
private
string
$shippingMethod
$shippingReturnMethod
private
string|null
$shippingReturnMethod
Methods
__construct()
public
__construct(string $shippingMethod, string $shippingGroup[, DateTimeImmutable $deliveryDate = null ][, float $shippingCost = null ][, bool $sendShippingMail = null ][, string $shippingReturnMethod = null ][, float $eBayShippingCost = null ]) : mixed
Parameters
- $shippingMethod : string
- $shippingGroup : string
- $deliveryDate : DateTimeImmutable = null
- $shippingCost : float = null
- $sendShippingMail : bool = null
- $shippingReturnMethod : string = null
- $eBayShippingCost : float = null
Return values
mixed —indent()
Indent of serialized xml tag.
public
indent() : string
Tags
Return values
string —toXmlString()
XML serialization.
public
toXmlString() : string
Return values
string —convertFloatToString()
Converts a float value to a string, using comma instead of point as separator.
private
convertFloatToString(float $value) : string
Parameters
- $value : float
Return values
string —escapeForXml()
Escapes the given string to be safe to be used as xml value.
private
escapeForXml(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|null —optionalsAsXml()
Creates a xml string of the optional values, if they are available.
private
optionalsAsXml() : string