CheeseCake/templates/bake/element/file_header.twig

4 lines
233 B
Twig

<?php
declare(strict_types=1);
{{- namespace ? "\n\nnamespace #{namespace};" : '' }}
{{- Bake.concat('\n', [Bake.classUses(classImports ?? []), Bake.functionUses(functionImports ?? []), Bake.constUses(constImports ?? [])], '\n\n') }}