src/Entity/GeneralMailConfiguration.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GeneralMailConfigurationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints\GreaterThanOrEqual;
  7. use Symfony\Component\Validator\Constraints\NotBlank;
  8. #[ORM\Entity(repositoryClassGeneralMailConfigurationRepository::class)]
  9. class GeneralMailConfiguration
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     #[NotBlank]
  17.     private ?string $host null;
  18.     #[ORM\Column(length255)]
  19.     #[NotBlank]
  20.     private ?string $mail null;
  21.     #[ORM\Column(length255)]
  22.     #[NotBlank(groups: ['new-mail-config'])]
  23.     private ?string $password null;
  24.     #[ORM\Column]
  25.     #[NotBlank]
  26.     #[GreaterThanOrEqual(1)]
  27.     private ?int $port null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $nameToShow null;
  30.     #[ORM\Column(typeTypes::TEXT)]
  31.     #[NotBlank]
  32.     private ?string $resetPasswordTemplate null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $isResetPasswordTemplateHtml null;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getHost(): ?string
  40.     {
  41.         return $this->host;
  42.     }
  43.     public function setHost(string $host): self
  44.     {
  45.         $this->host $host;
  46.         return $this;
  47.     }
  48.     public function getMail(): ?string
  49.     {
  50.         return $this->mail;
  51.     }
  52.     public function setMail(string $mail): self
  53.     {
  54.         $this->mail $mail;
  55.         return $this;
  56.     }
  57.     public function getPassword(): ?string
  58.     {
  59.         return $this->password;
  60.     }
  61.     public function setPassword(?string $password): self
  62.     {
  63.         $this->password $password;
  64.         return $this;
  65.     }
  66.     public function getPort(): ?int
  67.     {
  68.         return $this->port;
  69.     }
  70.     public function setPort(int $port): self
  71.     {
  72.         $this->port $port;
  73.         return $this;
  74.     }
  75.     public function getNameToShow(): ?string
  76.     {
  77.         return $this->nameToShow;
  78.     }
  79.     public function setNameToShow(?string $nameToShow): self
  80.     {
  81.         $this->nameToShow $nameToShow;
  82.         return $this;
  83.     }
  84.     public function getResetPasswordTemplate(): ?string
  85.     {
  86.         return $this->resetPasswordTemplate;
  87.     }
  88.     public function setResetPasswordTemplate(string $resetPasswordTemplate): self
  89.     {
  90.         $this->resetPasswordTemplate $resetPasswordTemplate;
  91.         return $this;
  92.     }
  93.     public function isIsResetPasswordTemplateHtml(): ?bool
  94.     {
  95.         return $this->isResetPasswordTemplateHtml;
  96.     }
  97.     public function setIsResetPasswordTemplateHtml(?bool $isResetPasswordTemplateHtml): self
  98.     {
  99.         $this->isResetPasswordTemplateHtml $isResetPasswordTemplateHtml;
  100.         return $this;
  101.     }
  102. }