50 'contentType' =>
$reader->getAttribute(
'content-type') ?:
'text/vcard',
51 'version' =>
$reader->getAttribute(
'version') ?:
'3.0',
54 $elems = (array)
$reader->parseInnerTree();
55 $result[
'addressDataProperties'] = array_map(
function($element) {
56 return $element[
'attributes'][
'name'];
An exception for terminatinating execution or to throw for unit testing.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
The Reader class expands upon PHP's built-in XMLReader.
Implementing the XmlDeserializable interface allows you to use a class as a deserializer for a specif...