@@ 105-119 (lines=15) @@ | ||
102 | $metadataIndex = count($metadataStack) - 2; |
|
103 | $metadata = isset($metadataStack[$metadataIndex]) ? $metadataStack[$metadataIndex] : null; |
|
104 | ||
105 | if ($metadata instanceof PropertyMetadataInterface) { |
|
106 | $inline = $metadata->isXmlInline(); |
|
107 | ||
108 | if ($metadata->hasXmlEntry()) { |
|
109 | $entry = $metadata->getXmlEntry(); |
|
110 | } |
|
111 | ||
112 | if ($metadata->hasXmlEntryAttribute()) { |
|
113 | $entryAttribute = $metadata->getXmlEntryAttribute(); |
|
114 | } |
|
115 | ||
116 | if ($metadata->hasXmlKeyAsAttribute()) { |
|
117 | $keyAsAttribute = $metadata->useXmlKeyAsAttribute(); |
|
118 | } |
|
119 | } |
|
120 | ||
121 | $keyType = $type->getOption('key'); |
|
122 | $valueType = $type->getOption('value'); |
@@ 247-263 (lines=17) @@ | ||
244 | $metadataIndex = count($metadataStack) - 2; |
|
245 | $metadata = isset($metadataStack[$metadataIndex]) ? $metadataStack[$metadataIndex] : null; |
|
246 | ||
247 | if ($metadata instanceof PropertyMetadataInterface) { |
|
248 | if ($metadata->hasXmlEntry()) { |
|
249 | $entry = $metadata->getXmlEntry(); |
|
250 | } |
|
251 | ||
252 | if ($metadata->hasXmlEntryAttribute()) { |
|
253 | $entryAttribute = $metadata->getXmlEntryAttribute(); |
|
254 | } |
|
255 | ||
256 | if ($metadata->hasXmlKeyAsAttribute()) { |
|
257 | $keyAsAttribute = $metadata->useXmlKeyAsAttribute(); |
|
258 | } |
|
259 | ||
260 | if ($metadata->hasXmlKeyAsNode()) { |
|
261 | $keyAsNode = $metadata->useXmlKeyAsNode(); |
|
262 | } |
|
263 | } |
|
264 | ||
265 | $valueType = $type->getOption('value'); |
|
266 | $ignoreNull = $context->isNullIgnored(); |