src/Entity/CRM/MailHistory.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\MailHistoryRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMailHistoryRepository::class)]
  7. class MailHistory
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $recipient null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $sender null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $sendType null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $sendDate null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $shortInfo null;
  23.     #[ORM\Column(type'json'nullabletrue)]
  24.     private ?array $attachments null;
  25.     #[ORM\ManyToOne(inversedBy'mailHistories')]
  26.     private ?Order $orderInstance null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getRecipient(): ?string
  32.     {
  33.         return $this->recipient;
  34.     }
  35.     public function setRecipient(string $recipient): static
  36.     {
  37.         $this->recipient $recipient;
  38.         return $this;
  39.     }
  40.     public function getSender(): ?string
  41.     {
  42.         return $this->sender;
  43.     }
  44.     public function setSender(string $sender): static
  45.     {
  46.         $this->sender $sender;
  47.         return $this;
  48.     }
  49.     public function getSendType(): ?string
  50.     {
  51.         return $this->sendType;
  52.     }
  53.     public function setSendType(string $sendType): static
  54.     {
  55.         $this->sendType $sendType;
  56.         return $this;
  57.     }
  58.     public function getSendDate(): ?\DateTimeInterface
  59.     {
  60.         return $this->sendDate;
  61.     }
  62.     public function setSendDate(\DateTimeInterface $sendDate): static
  63.     {
  64.         $this->sendDate $sendDate;
  65.         return $this;
  66.     }
  67.     public function getShortInfo(): ?string
  68.     {
  69.         return $this->shortInfo;
  70.     }
  71.     public function setShortInfo(?string $shortInfo): static
  72.     {
  73.         $this->shortInfo $shortInfo;
  74.         return $this;
  75.     }
  76.     public function getAttachments(): ?array
  77.     {
  78.         return $this->attachments;
  79.     }
  80.     public function setAttachments(?array $attachments): void
  81.     {
  82.         $this->attachments $attachments;
  83.     }
  84.     public function getOrderInstance(): ?Order
  85.     {
  86.         return $this->orderInstance;
  87.     }
  88.     public function setOrderInstance(?Order $orderInstance): static
  89.     {
  90.         $this->orderInstance $orderInstance;
  91.         return $this;
  92.     }
  93. }