Skip to content

Commit

Permalink
brainfart
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Dec 21, 2024
1 parent c9cbff9 commit 011f22b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/** @var \DCarbone\PHPFHIR\Version\Definition\Property $property */
/** @var int $i */

$config = $version->getConfig();
$setter = $property->getSetterName();
$propertyName = $property->getName();
$propertyConst = $property->getFieldConstantName();
Expand All @@ -28,6 +29,6 @@
if ($i > 0) : ?> else<?php else : ?> <?php endif; ?>if (self::<?php echo $propertyConst; ?> === $childName) {
foreach ($n->children() as $nn) {
$typeClassName = <?php echo PHPFHIR_CLASSNAME_VERSION_TYPE_MAP; ?>::getContainedTypeClassNameFromXML($nn);
$type-><?php echo $setter; ?>(new $typeClassName($nn));
$type-><?php echo $setter; ?>($typeClassName::xmlUnserialize($nn, null, $config));
}
}<?php return ob_get_clean();

0 comments on commit 011f22b

Please sign in to comment.