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\ManyToOne(inversedBy'mailHistories')]
  24.     private ?Order $orderInstance null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getRecipient(): ?string
  30.     {
  31.         return $this->recipient;
  32.     }
  33.     public function setRecipient(string $recipient): static
  34.     {
  35.         $this->recipient $recipient;
  36.         return $this;
  37.     }
  38.     public function getSender(): ?string
  39.     {
  40.         return $this->sender;
  41.     }
  42.     public function setSender(string $sender): static
  43.     {
  44.         $this->sender $sender;
  45.         return $this;
  46.     }
  47.     public function getSendType(): ?string
  48.     {
  49.         return $this->sendType;
  50.     }
  51.     public function setSendType(string $sendType): static
  52.     {
  53.         $this->sendType $sendType;
  54.         return $this;
  55.     }
  56.     public function getSendDate(): ?\DateTimeInterface
  57.     {
  58.         return $this->sendDate;
  59.     }
  60.     public function setSendDate(\DateTimeInterface $sendDate): static
  61.     {
  62.         $this->sendDate $sendDate;
  63.         return $this;
  64.     }
  65.     public function getShortInfo(): ?string
  66.     {
  67.         return $this->shortInfo;
  68.     }
  69.     public function setShortInfo(?string $shortInfo): static
  70.     {
  71.         $this->shortInfo $shortInfo;
  72.         return $this;
  73.     }
  74.     public function getOrderInstance(): ?Order
  75.     {
  76.         return $this->orderInstance;
  77.     }
  78.     public function setOrderInstance(?Order $orderInstance): static
  79.     {
  80.         $this->orderInstance $orderInstance;
  81.         return $this;
  82.     }
  83. }