creatorId = $creator->getId(); $this->templateId = $template->getId(); $this->destinationStoredObjectId = $destinationStoredObject->getId(); $this->createdAt = new \DateTimeImmutable('now'); $this->sendResultToEmail = $sendResultToEmail ?? $creator->getEmail(); } public function getCreatorId(): int { return $this->creatorId; } public function getDestinationStoredObjectId(): int { return $this->destinationStoredObjectId; } public function getTemplateId(): int { return $this->templateId; } public function getEntityId(): int { return $this->entityId; } public function getContextGenerationData(): array { return $this->contextGenerationData; } public function getCreatedAt(): \DateTimeImmutable { return $this->createdAt; } public function isTest(): bool { return $this->isTest; } public function getSendResultToEmail(): ?string { return $this->sendResultToEmail; } public function isDumpOnly(): bool { return $this->dumpOnly; } }