src/Entity/Gos/SalesManagoCouponLog.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Gos\SalesManagoCouponLogRepository")
  6.  * @ORM\HasLifecycleCallbacks()
  7.  */
  8. class SalesManagoCouponLog
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime")
  18.      */
  19.     private $createdAt;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $ruleId;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $ruleName;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $contactId;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $code;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $contactEmail;
  40.     /**
  41.      * @ORM\Column(type="text", nullable=true)
  42.      */
  43.     private $jsonToSend;
  44.     /**
  45.      * @ORM\Column(type="text", nullable=true)
  46.      */
  47.     private $receivedResponse;
  48.     /** @ORM\PrePersist() */
  49.     public function prePersist()
  50.     {
  51.         $this->createdAt = new \DateTime();
  52.     }
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeInterface
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function getRuleName(): ?string
  62.     {
  63.         return $this->ruleName;
  64.     }
  65.     public function setRuleName(string $ruleName): self
  66.     {
  67.         $this->ruleName $ruleName;
  68.         return $this;
  69.     }
  70.     public function getContactId(): ?string
  71.     {
  72.         return $this->contactId;
  73.     }
  74.     public function setContactId(string $contactId): self
  75.     {
  76.         $this->contactId $contactId;
  77.         return $this;
  78.     }
  79.     public function getCode(): ?string
  80.     {
  81.         return $this->code;
  82.     }
  83.     public function setCode(string $code): self
  84.     {
  85.         $this->code $code;
  86.         return $this;
  87.     }
  88.     public function getRuleId(): ?string
  89.     {
  90.         return $this->ruleId;
  91.     }
  92.     public function setRuleId(string $ruleId): self
  93.     {
  94.         $this->ruleId $ruleId;
  95.         return $this;
  96.     }
  97.     public function getContactEmail(): ?string
  98.     {
  99.         return $this->contactEmail;
  100.     }
  101.     public function setContactEmail(?string $contactEmail): self
  102.     {
  103.         $this->contactEmail $contactEmail;
  104.         return $this;
  105.     }
  106.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  107.     {
  108.         $this->createdAt $createdAt;
  109.         return $this;
  110.     }
  111.     public function getJsonToSend(): ?string
  112.     {
  113.         return $this->jsonToSend;
  114.     }
  115.     public function setJsonToSend(?string $jsonToSend): self
  116.     {
  117.         $this->jsonToSend $jsonToSend;
  118.         return $this;
  119.     }
  120.     public function getReceivedResponse(): ?string
  121.     {
  122.         return $this->receivedResponse;
  123.     }
  124.     public function setReceivedResponse(?string $receivedResponse): self
  125.     {
  126.         $this->receivedResponse $receivedResponse;
  127.         return $this;
  128.     }
  129. }