19declare(strict_types=1);
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);
__construct(private readonly ilCertificateTemplateRepository $templateRepository, private readonly string $iliasVersion=ILIAS_VERSION_NUMERIC, ?ilCertificateObjectHelper $objectHelper=null)
readonly ilCertificateObjectHelper $objectHelper
const ILIAS_VERSION_NUMERIC