ShippingAddress
in package
implements
XmlSerializable
Uses
EscapeXmlTrait
Class ShippingAddress
Interfaces, Classes and Traits
- XmlSerializable
- Interface XmlSerializable
Table of Contents
- $city : string
- $company : string|null
- $country : string
- $firstName : string
- $lastName : string
- $phone : string|null
- $postalCode : string
- $stateOfProvince : string|null
- $street : string
- $street2 : string|null
- __construct() : mixed
- indent() : string
- Indent of serialized xml tag.
- toXmlString() : string
- XML serialization.
- 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.
Properties
$city
private
string
$city
$company
private
string|null
$company
$country
private
string
$country
$firstName
private
string
$firstName
$lastName
private
string
$lastName
$phone
private
string|null
$phone
$postalCode
private
string
$postalCode
$stateOfProvince
private
string|null
$stateOfProvince
$street
private
string
$street
$street2
private
string|null
$street2
Methods
__construct()
public
__construct(string $firstName, string $lastName, string $street, string $postalCode, string $city, string $country[, string $stateOfProvince = null ][, string $company = null ][, string $street2 = null ][, string $phone = null ]) : mixed
Parameters
- $firstName : string
- $lastName : string
- $street : string
- $postalCode : string
- $city : string
- $country : string
- $stateOfProvince : string = null
- $company : string = null
- $street2 : string = null
- $phone : string = null
Return values
mixed —indent()
Indent of serialized xml tag.
public
indent() : string
Tags
Return values
string —toXmlString()
XML serialization.
public
toXmlString() : string
Tags
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