src/Entity/CRM/Mailbox.php line 9

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\MailboxRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMailboxRepository::class)]
  6. class Mailbox
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $imapServer null;
  14.     #[ORM\Column]
  15.     private ?int $imapPort null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $username null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $password null;
  20.     #[ORM\OneToOne(inversedBy'mailbox'cascade: ['persist''remove'])]
  21.     private ?Admin $admin null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getImapServer(): ?string
  27.     {
  28.         return $this->imapServer;
  29.     }
  30.     public function setImapServer(string $imapServer): static
  31.     {
  32.         $this->imapServer $imapServer;
  33.         return $this;
  34.     }
  35.     public function getImapPort(): ?int
  36.     {
  37.         return $this->imapPort;
  38.     }
  39.     public function setImapPort(int $imapPort): static
  40.     {
  41.         $this->imapPort $imapPort;
  42.         return $this;
  43.     }
  44.     public function getUsername(): ?string
  45.     {
  46.         return $this->username;
  47.     }
  48.     public function setUsername(string $username): static
  49.     {
  50.         $this->username $username;
  51.         return $this;
  52.     }
  53.     public function getPassword(): ?string
  54.     {
  55.         return $this->password;
  56.     }
  57.     public function setPassword(string $password): static
  58.     {
  59.         $this->password $password;
  60.         return $this;
  61.     }
  62.     public function getAdmin(): ?Admin
  63.     {
  64.         return $this->admin;
  65.     }
  66.     public function setAdmin(?Admin $admin): static
  67.     {
  68.         $this->admin $admin;
  69.         return $this;
  70.     }
  71. }