mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
46 lines
983 B
PHP
46 lines
983 B
PHP
<?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;
|
|
}
|
|
}
|