Skip to content

Commit

Permalink
simpler primitive parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jan 29, 2025
1 parent 6f361a1 commit 4cff46f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@
$valueAttr = $n->attributes()[<?php echo $propType->getClassName(); ?>::FIELD_VALUE] ?? null;
if (null !== $valueAttr) {
$value = (string)$valueAttr;
} else if ($n->hasChildren()) {
$value = $n->saveXML();
} else {
$value = (string)$n;
}
$type-><?php echo $setter; ?>($value, valueXMLLocation: <?php echo $valueXMLLocationEnum->getEntityName(); ?>::ELEMENT);
$type-><?php echo $setter; ?>($value, <?php echo $valueXMLLocationEnum->getEntityName(); ?>::ELEMENT);
<?php elseif ($propTypeKind->isResourceContainer($version)) : ?>
foreach ($n->children() as $nn) {
/** @var <?php echo $containedTypeInterface->getFullyQualifiedName(true); ?> $cn */
Expand Down

0 comments on commit 4cff46f

Please sign in to comment.