src/Entity/Gos/SalesManagoOptOut.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(name="salesmanago_opt_out")
  6.  * @ORM\Entity(repositoryClass="App\Repository\SalesManagoOptOutRepository")
  7.  * @ORM\HasLifecycleCallbacks
  8.  */
  9. class SalesManagoOptOut
  10. {
  11.     /**
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="IDENTITY")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=false)
  19.      */
  20.     private $email;
  21.     /**
  22.      * @ORM\Column(type="boolean", nullable=true, options={"default": null})
  23.      */
  24.     private $fromSm;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $gotData;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $createdAt;
  33.     /** @ORM\PrePersist() */
  34.     public function prePersist()
  35.     {
  36.         $this->createdAt = new \DateTime();
  37.     }
  38.     /**
  39.      * Get id
  40.      *
  41.      * @return integer
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * Set email
  49.      *
  50.      * @param string $email
  51.      *
  52.      * @return SalesManagoOptOut
  53.      */
  54.     public function setEmail($email): self
  55.     {
  56.         $this->email $email;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get email
  61.      *
  62.      * @return string
  63.      */
  64.     public function getEmail()
  65.     {
  66.         return $this->email;
  67.     }
  68.     /**
  69.      * Set createdAt
  70.      *
  71.      * @param \DateTime $createdAt
  72.      *
  73.      * @return SalesManagoOptOut
  74.      */
  75.     public function setCreatedAt($createdAt)
  76.     {
  77.         $this->createdAt $createdAt;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get createdAt
  82.      *
  83.      * @return \DateTime
  84.      */
  85.     public function getCreatedAt()
  86.     {
  87.         return $this->createdAt;
  88.     }
  89.     /**
  90.      * Set fromSm
  91.      *
  92.      * @param boolean $fromSm
  93.      *
  94.      * @return SalesManagoOptOut
  95.      */
  96.     public function setFromSm($fromSm): self
  97.     {
  98.         $this->fromSm $fromSm;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get fromSm
  103.      *
  104.      * @return boolean
  105.      */
  106.     public function getFromSm()
  107.     {
  108.         return $this->fromSm;
  109.     }
  110.     /**
  111.      * Set gotData
  112.      *
  113.      * @param string $gotData
  114.      *
  115.      * @return SalesManagoOptOut
  116.      */
  117.     public function setGotData($gotData): self
  118.     {
  119.         $this->gotData $gotData;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get gotData
  124.      *
  125.      * @return string
  126.      */
  127.     public function getGotData()
  128.     {
  129.         return $this->gotData;
  130.     }
  131. }