src/Entity/EmailProgrammation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmailProgrammationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=EmailProgrammationRepository::class)
  8.  */
  9. class EmailProgrammation
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="text")
  19.      * @Assert\NotBlank
  20.      */
  21.     private $template;
  22.     /**
  23.      * @ORM\Column(type="datetime")
  24.      * @Assert\NotBlank
  25.      */
  26.     private $sendingDate;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      * @Assert\NotBlank
  30.      */
  31.     private $sender;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      * @Assert\NotBlank
  35.      */
  36.     private $reciever;
  37.     /**
  38.      * @ORM\Column(type="string", length=255)
  39.      * @Assert\NotBlank
  40.      */
  41.     private $object;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $cc;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $cci;
  50.     /**
  51.      * @ORM\Column(type="json", nullable=true)
  52.      */
  53.     private $detail = [];
  54.     /**
  55.      * @ORM\Column(type="text")
  56.      */
  57.     private $content;
  58.     /**
  59.      * @ORM\Column(type="datetime")
  60.      */
  61.     private $createdAt;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="emailProgrammations")
  64.      * @ORM\JoinColumn(nullable=false)
  65.      */
  66.     private $client;
  67.     public function getId(): ?int
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getTemplate(): ?string
  72.     {
  73.         return $this->template;
  74.     }
  75.     public function setTemplate(string $template): self
  76.     {
  77.         $this->template $template;
  78.         return $this;
  79.     }
  80.     public function getSendingDate(): ?\DateTimeInterface
  81.     {
  82.         return $this->sendingDate;
  83.     }
  84.     public function setSendingDate(\DateTimeInterface $sendingDate): self
  85.     {
  86.         $this->sendingDate $sendingDate;
  87.         return $this;
  88.     }
  89.     public function getSender(): ?string
  90.     {
  91.         return $this->sender;
  92.     }
  93.     public function setSender(string $sender): self
  94.     {
  95.         $this->sender $sender;
  96.         return $this;
  97.     }
  98.     public function getReciever(): ?string
  99.     {
  100.         return $this->reciever;
  101.     }
  102.     public function setReciever(string $reciever): self
  103.     {
  104.         $this->reciever $reciever;
  105.         return $this;
  106.     }
  107.     public function getObject(): ?string
  108.     {
  109.         return $this->object;
  110.     }
  111.     public function setObject(string $object): self
  112.     {
  113.         $this->object $object;
  114.         return $this;
  115.     }
  116.     public function getCc(): ?string
  117.     {
  118.         return $this->cc;
  119.     }
  120.     public function setCc(?string $cc): self
  121.     {
  122.         $this->cc $cc;
  123.         return $this;
  124.     }
  125.     public function getCci(): ?string
  126.     {
  127.         return $this->cci;
  128.     }
  129.     public function setCci(?string $cci): self
  130.     {
  131.         $this->cci $cci;
  132.         return $this;
  133.     }
  134.     public function getDetail(): ?array
  135.     {
  136.         return $this->detail;
  137.     }
  138.     public function setDetail(?array $detail): self
  139.     {
  140.         $this->detail $detail;
  141.         return $this;
  142.     }
  143.     public function getContent(): ?string
  144.     {
  145.         return $this->content;
  146.     }
  147.     public function setContent(string $content): self
  148.     {
  149.         $this->content $content;
  150.         return $this;
  151.     }
  152.     public function getCreatedAt(): ?\DateTime
  153.     {
  154.         return $this->createdAt;
  155.     }
  156.     public function setCreatedAt(\DateTime $createdAt): self
  157.     {
  158.         $this->createdAt $createdAt;
  159.         return $this;
  160.     }
  161.     public function getClient(): ?Client
  162.     {
  163.         return $this->client;
  164.     }
  165.     public function setClient(?Client $client): self
  166.     {
  167.         $this->client $client;
  168.         return $this;
  169.     }
  170. }