Skip to content

Commit

Permalink
version type map ref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jan 17, 2025
1 parent 8aab701 commit 9fc0e72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions template/core/versions/interface_version_type_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@
* limitations under the License.
*/

use DCarbone\PHPFHIR\Utilities\ImportUtils;

/** @var \DCarbone\PHPFHIR\Config $config */
/** @var \DCarbone\PHPFHIR\CoreFile $coreFile */

$imports = $coreFile->getImports();

$imports->addCoreFileImportsByName(
PHPFHIR_INTERFACE_TYPE
);

$coreFiles = $config->getCoreFiles();

$typeInterface = $coreFiles->getCoreFileByEntityName(PHPFHIR_INTERFACE_TYPE);
Expand All @@ -30,6 +38,8 @@

<?php echo $config->getBasePHPFHIRCopyrightComment(true); ?>

<?php echo ImportUtils::compileImportStatements($imports); ?>

interface <?php echo PHPFHIR_INTERFACE_VERSION_TYPE_MAP; ?>

{
Expand Down

0 comments on commit 9fc0e72

Please sign in to comment.