@@ 77-85 (lines=9) @@ | ||
74 | } |
|
75 | } |
|
76 | ||
77 | private function acceptDataAndAppend(Embedded $embedded, $data, XmlSerializationVisitor $visitor, SerializationContext $context) |
|
78 | { |
|
79 | $context->pushPropertyMetadata($embedded->getMetadata()); |
|
80 | ||
81 | if (null !== $node = $context->accept($data)) { |
|
82 | $visitor->getCurrentNode()->appendChild($node); |
|
83 | } |
|
84 | $context->popPropertyMetadata(); |
|
85 | } |
|
86 | } |
|
87 |
@@ 94-103 (lines=10) @@ | ||
91 | return $elementName ?: 'entry'; |
|
92 | } |
|
93 | ||
94 | private function acceptDataAndAppend(Embedded $embedded, $data, XmlSerializationVisitor $visitor, SerializationContext $context) |
|
95 | { |
|
96 | $context->pushPropertyMetadata($embedded->getMetadata()); |
|
97 | ||
98 | if (null !== $node = $context->accept($data)) { |
|
99 | $visitor->getCurrentNode()->appendChild($node); |
|
100 | } |
|
101 | ||
102 | $context->popPropertyMetadata(); |
|
103 | } |
|
104 | } |
|
105 |