public static function injectFile(TemplateInterface $template, TemplateTranslationInterface $translation): void
    {
        if ($template instanceof TemplateFileInterface && $translation instanceof TemplateFileInterface) {
            /** @var TemplateInterface $template */
            /** @var TemplateTranslationInterface $translation */
            static::injectValue($template, $translation, 'file');
        }
    }
public static function injectFile(TemplateInterface $template, TemplateTranslationInterface $translation): void
    {
        if ($template instanceof TemplateFileInterface && $translation instanceof TemplateFileInterface) {
            /** @var TemplateInterface $template */
            /** @var TemplateTranslationInterface $translation */
            static::injectValue($template, $translation, 'file');
        }
    }
public static function injectFile ( TemplateInterface $ template , TemplateTranslationInterface $ translation ) : void { if ( $ template instanceof TemplateFileInterface && $ translation instanceof TemplateFileInterface ) { /** @var TemplateInterface $template */ /** @var TemplateTranslationInterface $translation */ static :: injectValue ( $ template , $ translation , 'file' ) ; } }
Inject the translation file in template.

@param TemplateInterface            $template    The template instance
@param TemplateTranslationInterface $translation The template translation instance
Inject the translation file in template .