vendor/sulu/form-bundle/Entity/FormTranslation.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\FormBundle\Entity;
  11. use Doctrine\Common\Collections\ArrayCollection;
  12. use Doctrine\Common\Collections\Collection;
  13. use Sulu\Component\Persistence\Model\AuditableInterface;
  14. use Sulu\Component\Persistence\Model\AuditableTrait;
  15. /**
  16.  * Form translation entity.
  17.  */
  18. class FormTranslation implements AuditableInterface
  19. {
  20.     use AuditableTrait;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $title;
  25.     /**
  26.      * @var null|string
  27.      */
  28.     private $subject;
  29.     /**
  30.      * @var string|null
  31.      */
  32.     private $fromEmail;
  33.     /**
  34.      * @var null|string
  35.      */
  36.     private $fromName;
  37.     /**
  38.      * @var string|null
  39.      */
  40.     private $toEmail;
  41.     /**
  42.      * @var null|string
  43.      */
  44.     private $toName;
  45.     /**
  46.      * @var null|string
  47.      */
  48.     private $mailText;
  49.     /**
  50.      * @var null|string
  51.      */
  52.     private $submitLabel;
  53.     /**
  54.      * @var null|string
  55.      */
  56.     private $successText;
  57.     /**
  58.      * @var bool
  59.      */
  60.     private $sendAttachments false;
  61.     /**
  62.      * @var bool
  63.      */
  64.     private $deactivateAttachmentSave false;
  65.     /**
  66.      * @var bool
  67.      */
  68.     private $deactivateNotifyMails false;
  69.     /**
  70.      * @var bool
  71.      */
  72.     private $deactivateCustomerMails false;
  73.     /**
  74.      * @var bool
  75.      */
  76.     private $replyTo false;
  77.     /**
  78.      * @var string
  79.      */
  80.     private $locale;
  81.     /**
  82.      * @var null|int
  83.      */
  84.     private $id;
  85.     /**
  86.      * @var Form
  87.      */
  88.     private $form;
  89.     /**
  90.      * @var Collection<int, FormTranslationReceiver>
  91.      */
  92.     private $receivers;
  93.     public function __construct()
  94.     {
  95.         $this->receivers = new ArrayCollection();
  96.     }
  97.     public function setTitle(string $title): self
  98.     {
  99.         $this->title $title;
  100.         return $this;
  101.     }
  102.     public function getTitle(): string
  103.     {
  104.         return $this->title;
  105.     }
  106.     public function setSubject(?string $subject): self
  107.     {
  108.         $this->subject $subject;
  109.         return $this;
  110.     }
  111.     public function getSubject(): ?string
  112.     {
  113.         return $this->subject;
  114.     }
  115.     public function setFromEmail(?string $fromEmail): self
  116.     {
  117.         $this->fromEmail $fromEmail;
  118.         return $this;
  119.     }
  120.     public function getFromEmail(): ?string
  121.     {
  122.         return $this->fromEmail;
  123.     }
  124.     public function setFromName(?string $fromName): self
  125.     {
  126.         $this->fromName $fromName;
  127.         return $this;
  128.     }
  129.     public function getFromName(): ?string
  130.     {
  131.         return $this->fromName;
  132.     }
  133.     public function setToEmail(?string $toEmail): self
  134.     {
  135.         $this->toEmail $toEmail;
  136.         return $this;
  137.     }
  138.     public function getToEmail(): ?string
  139.     {
  140.         return $this->toEmail;
  141.     }
  142.     public function setToName(?string $toName): self
  143.     {
  144.         $this->toName $toName;
  145.         return $this;
  146.     }
  147.     public function getToName(): ?string
  148.     {
  149.         return $this->toName;
  150.     }
  151.     public function setMailText(?string $mailText): self
  152.     {
  153.         $this->mailText $mailText;
  154.         return $this;
  155.     }
  156.     public function getMailText(): ?string
  157.     {
  158.         return $this->mailText;
  159.     }
  160.     public function setSubmitLabel(?string $submitLabel): self
  161.     {
  162.         $this->submitLabel $submitLabel;
  163.         return $this;
  164.     }
  165.     public function getSubmitLabel(): ?string
  166.     {
  167.         return $this->submitLabel;
  168.     }
  169.     public function setSuccessText(?string $successText): self
  170.     {
  171.         $this->successText $successText;
  172.         return $this;
  173.     }
  174.     public function getSuccessText(): ?string
  175.     {
  176.         return $this->successText;
  177.     }
  178.     public function setSendAttachments(bool $sendAttachments): self
  179.     {
  180.         $this->sendAttachments $sendAttachments;
  181.         return $this;
  182.     }
  183.     public function getSendAttachments(): bool
  184.     {
  185.         return $this->sendAttachments;
  186.     }
  187.     public function getDeactivateAttachmentSave(): bool
  188.     {
  189.         return $this->deactivateAttachmentSave;
  190.     }
  191.     public function setDeactivateAttachmentSave(bool $deactivateAttachmentSave): self
  192.     {
  193.         $this->deactivateAttachmentSave $deactivateAttachmentSave;
  194.         return $this;
  195.     }
  196.     public function setDeactivateNotifyMails(bool $deactivateNotifyMails): self
  197.     {
  198.         $this->deactivateNotifyMails $deactivateNotifyMails;
  199.         return $this;
  200.     }
  201.     public function getDeactivateNotifyMails(): bool
  202.     {
  203.         return $this->deactivateNotifyMails;
  204.     }
  205.     public function setDeactivateCustomerMails(bool $deactivateCustomerMails): self
  206.     {
  207.         $this->deactivateCustomerMails $deactivateCustomerMails;
  208.         return $this;
  209.     }
  210.     public function getDeactivateCustomerMails(): bool
  211.     {
  212.         return $this->deactivateCustomerMails;
  213.     }
  214.     public function setReplyTo(bool $replyTo): self
  215.     {
  216.         $this->replyTo $replyTo;
  217.         return $this;
  218.     }
  219.     public function getReplyTo(): bool
  220.     {
  221.         return $this->replyTo;
  222.     }
  223.     public function setLocale(string $locale): self
  224.     {
  225.         $this->locale $locale;
  226.         return $this;
  227.     }
  228.     public function getLocale(): string
  229.     {
  230.         return $this->locale;
  231.     }
  232.     public function getId(): ?int
  233.     {
  234.         return $this->id;
  235.     }
  236.     public function setForm(Form $form): self
  237.     {
  238.         $this->form $form;
  239.         return $this;
  240.     }
  241.     public function getForm(): Form
  242.     {
  243.         return $this->form;
  244.     }
  245.     /**
  246.      * @return Collection<int, FormTranslationReceiver>
  247.      */
  248.     public function getReceivers()
  249.     {
  250.         return $this->receivers;
  251.     }
  252.     public function addReceiver(FormTranslationReceiver $receiver): self
  253.     {
  254.         $this->receivers[] = $receiver;
  255.         return $this;
  256.     }
  257.     public function removeReceiver(FormTranslationReceiver $receiver): self
  258.     {
  259.         $this->receivers->removeElement($receiver);
  260.         return $this;
  261.     }
  262. }