mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Feature: [docgen] create a service to generate a document from a template
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\DocGeneratorBundle\Service\Messenger;
|
||||
|
||||
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
|
||||
class RequestGenerationMessage
|
||||
{
|
||||
private int $creatorId;
|
||||
|
||||
private int $templateId;
|
||||
|
||||
private int $entityId;
|
||||
|
||||
private string $entityClassName;
|
||||
|
||||
public function __construct(User $creator, DocGeneratorTemplate $template, int $entityId, string $entityClassName)
|
||||
{
|
||||
$this->creatorId = $creator->getId();
|
||||
$this->templateId = $template->getId();
|
||||
$this->entityId = $entityId;
|
||||
$this->entityClassName = $entityClassName;
|
||||
}
|
||||
|
||||
public function getCreatorId(): int
|
||||
{
|
||||
return $this->creatorId;
|
||||
}
|
||||
|
||||
public function getTemplateId(): int
|
||||
{
|
||||
return $this->templateId;
|
||||
}
|
||||
|
||||
public function getEntityId(): int
|
||||
{
|
||||
return $this->entityId;
|
||||
}
|
||||
|
||||
public function getEntityClassName(): string
|
||||
{
|
||||
return $this->entityClassName;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user