phpDocumentor

PaymentInfo implements XmlSerializable Uses RequestPriceUtilityTrait, EscapeXmlTrait

Class PaymentInfo

Interfaces, Classes and Traits

XmlSerializable
Interface XmlSerializable

Table of Contents

DATE_FORMAT  = 'd.m.Y H:i:s'
$alreadyPaid  : float|null
$paymentAdditionalCost  : float|null
$paymentDate  : DateTimeImmutable|null
$paymentMethod  : string
$sendPaymentMail  : bool|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

$paymentAdditionalCost

private float|null $paymentAdditionalCost

$paymentDate

private DateTimeImmutable|null $paymentDate

Methods

__construct()

public __construct(string $paymentMethod[, DateTimeImmutable|null $paymentDate = null ][, float $alreadyPaid = null ][, float $paymentAdditionalCost = null ][, bool $sendPaymentMail = null ]) : mixed
Parameters
$paymentMethod : string
$paymentDate : DateTimeImmutable|null = null
$alreadyPaid : float = null
$paymentAdditionalCost : float = null
$sendPaymentMail : bool = null
Return values
mixed

indent()

Indent of serialized xml tag.

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

Search results