19 declare(strict_types=1);
    33         if (null === $objectHelper) {
    39     public function delete(
int $templateId, 
int $objectId): 
void    41         $template = $this->templateRepository->fetchCurrentlyUsedCertificate($objectId);
    43         $this->templateRepository->deleteTemplate($templateId, $objectId);
    48             $this->objectHelper->lookupType($objectId),
    62         $this->templateRepository->save($certificateTemplate);
 
const ILIAS_VERSION_NUMERIC
 
readonly ilCertificateObjectHelper $objectHelper
 
__construct(private readonly ilCertificateTemplateRepository $templateRepository, private readonly string $iliasVersion=ILIAS_VERSION_NUMERIC, ?ilCertificateObjectHelper $objectHelper=null)