src/Entity/CRM/MailConfig.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\MailConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMailConfigRepository::class)]
  6. class MailConfig
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $fromAddress null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $fromPassword null;
  16.     #[ORM\OneToOne(inversedBy'mailConfig'cascade: ['persist''remove'])]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Branch $branch null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $replyTo null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getFromAddress(): ?string
  26.     {
  27.         return $this->fromAddress;
  28.     }
  29.     public function setFromAddress(string $fromAddress): self
  30.     {
  31.         $this->fromAddress $fromAddress;
  32.         return $this;
  33.     }
  34.     public function getFromPassword(): ?string
  35.     {
  36.         return $this->fromPassword;
  37.     }
  38.     public function setFromPassword(string $fromPassword): self
  39.     {
  40.         $this->fromPassword $fromPassword;
  41.         return $this;
  42.     }
  43.     public function getBranch(): ?Branch
  44.     {
  45.         return $this->branch;
  46.     }
  47.     public function setBranch(Branch $branch): static
  48.     {
  49.         $this->branch $branch;
  50.         return $this;
  51.     }
  52.     public function getReplyTo(): ?string
  53.     {
  54.         return $this->replyTo;
  55.     }
  56.     public function setReplyTo(string $replyTo): static
  57.     {
  58.         $this->replyTo $replyTo;
  59.         return $this;
  60.     }
  61. }