phpDocumentor

ShippingAddress 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

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
inheritDoc
Return values
string

toXmlString()

XML serialization.

public toXmlString() : string
Tags
inheritDoc
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
Return values
string

Search results