src/Entity/LogEmail.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LogEmailRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * @ORM\Entity(repositoryClass=LogEmailRepository::class)
  9.  */
  10. class LogEmail
  11. {
  12.     const CATEGORY_EMAIL_INACTIVITY "email_inactivity";
  13.     const SUB_EMAIL_INACTIVITY_NEW_FIRST "new_first_inactivity";
  14.     const SUB_EMAIL_INACTIVITY_FIRST "first_inactivity";
  15.     const SUB_EMAIL_INACTIVITY_SECOND "second_inactivity";
  16.     const SUB_EMAIL_INACTIVITY_THIRD "third_inactivity";
  17.     const CATEGORIES = [
  18.       self::CATEGORY_EMAIL_INACTIVITY
  19.     ];
  20.     const SUB_CATEGORIES = [
  21.         self::CATEGORY_EMAIL_INACTIVITY => [
  22.             self::SUB_EMAIL_INACTIVITY_NEW_FIRST,
  23.             self::SUB_EMAIL_INACTIVITY_FIRST,
  24.             self::SUB_EMAIL_INACTIVITY_SECOND,
  25.             self::SUB_EMAIL_INACTIVITY_THIRD
  26.         ]
  27.     ];
  28.     /**
  29.      * @ORM\Id
  30.      * @ORM\GeneratedValue
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $id;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=TvUser::class, inversedBy="logEmails")
  36.      */
  37.     private $tvUser;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="logEmails")
  40.      */
  41.     private $user;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=TvCompany::class, inversedBy="logEmails")
  44.      */
  45.     private $tvCompany;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="logEmails")
  48.      */
  49.     private $company;
  50.     /**
  51.      * @ORM\Column(type="datetime")
  52.      * @Gedmo\Timestampable(on="create")
  53.      */
  54.     private $createdAt;
  55.     /**
  56.      * @ORM\Column(type="text")
  57.      */
  58.     private $message;
  59.     /**
  60.      * @ORM\Column(type="string", length=255)
  61.      */
  62.     private $category;
  63.     /**
  64.      * @ORM\Column(type="string", length=255)
  65.      */
  66.     private $subCategory;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $emails;
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getCreatedAt(): ?\DateTimeInterface
  76.     {
  77.         return $this->createdAt;
  78.     }
  79.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  80.     {
  81.         $this->createdAt $createdAt;
  82.         return $this;
  83.     }
  84.     public function getMessage(): ?string
  85.     {
  86.         return $this->message;
  87.     }
  88.     public function setMessage(string $message): self
  89.     {
  90.         $this->message $message;
  91.         return $this;
  92.     }
  93.     public function getCategory(): ?string
  94.     {
  95.         return $this->category;
  96.     }
  97.     public function setCategory(string $category): self
  98.     {
  99.         $this->category $category;
  100.         return $this;
  101.     }
  102.     public function getSubCategory(): ?string
  103.     {
  104.         return $this->subCategory;
  105.     }
  106.     public function setSubCategory(string $subCategory): self
  107.     {
  108.         $this->subCategory $subCategory;
  109.         return $this;
  110.     }
  111.     public function getTvUser(): ?TvUser
  112.     {
  113.         return $this->tvUser;
  114.     }
  115.     public function setTvUser(?TvUser $tvUser): self
  116.     {
  117.         $this->tvUser $tvUser;
  118.         return $this;
  119.     }
  120.     public function getUser(): ?User
  121.     {
  122.         return $this->user;
  123.     }
  124.     public function setUser(?User $user): self
  125.     {
  126.         $this->user $user;
  127.         return $this;
  128.     }
  129.     public function getTvCompany(): ?TvCompany
  130.     {
  131.         return $this->tvCompany;
  132.     }
  133.     public function setTvCompany(?TvCompany $tvCompany): self
  134.     {
  135.         $this->tvCompany $tvCompany;
  136.         return $this;
  137.     }
  138.     public function getCompany(): ?Company
  139.     {
  140.         return $this->company;
  141.     }
  142.     public function setCompany(?Company $company): self
  143.     {
  144.         $this->company $company;
  145.         return $this;
  146.     }
  147.     public function getEmails(): ?string
  148.     {
  149.         return $this->emails;
  150.     }
  151.     public function setEmails(?string $emails): self
  152.     {
  153.         $this->emails $emails;
  154.         return $this;
  155.     }
  156. }