2023-02-16 14:08:11 +01:00

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;
}
}