__construct()
fromXml()
fromXmlString()
getContentType()
mapFromStorage()
mapToStorage()
toXML()
toXMLString()
castValue()
mapObjectToElementName()
propertyToXmlkey()
propertyToXmlkeyCallback()
sortKeyLength()
strEndsWith()
xmlElementToClassname()
xmlkeyToProperty()
xmlkeyToPropertyCallback()
$objectMapper
Translates XML into objects and objects into XML
__construct()
fromXml(\Moneybird\SimpleXMLElement $xmlElement)
fromXmlString(string $xmlstring)
getContentType() : string
stringmapToStorage(\Moneybird\Mapper_Mapable $subject) : string
toXML(\Moneybird\Mapper_Mapable $subject) : \Moneybird\SimpleXMLElement
| access | public |
|---|
toXMLString(\Moneybird\Mapper_Mapable $subject) : string
castValue(\Moneybird\SimpleXMLElement $xmlElement) : mixed
mapObjectToElementName(\Moneybird\Mapper_Mapable $subject) : string
propertyToXmlkey(string $key) : string
| access | protected |
|---|
string
stringpropertyToXmlkeyCallback(Array $match) : string
| access | protected |
|---|
Array
stringsortKeyLength(string $a, string $b) : int
string
string
intstrEndsWith(string $str, string $end) : bool
| access | protected |
|---|
string
string
boolxmlElementToClassname(\Moneybird\SimpleXMLElement $xmlElement) : string
xmlkeyToProperty(string $key) : string
| access | protected |
|---|
string
stringxmlkeyToPropertyCallback(Array $match) : string
| access | protected |
|---|
Array
string$objectMapper : Array