src/Entity/EmailTransaccionAbandonada.php line 19

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\Collection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\SluggableInterface;
  9. /**
  10.  * Category
  11.  *
  12.  * @ORM\Table(name="email_transaccion_abandonada")
  13.  * @ORM\Entity
  14.  */
  15. class EmailTransaccionAbandonada
  16. {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="email", type="string", length=255)
  29.      */
  30.     private $email;
  31.     /**
  32.      * @var \DateTime
  33.      *
  34.      * @ORM\Column(name="fecha_transaccion", type="datetime", nullable=false)
  35.      */
  36.     private $fechaTransaccion;
  37.     /**
  38.      * @var \DateTime
  39.      *
  40.      * @ORM\Column(name="fecha_envio", type="datetime", nullable=false)
  41.      */
  42.     private $fechaEnvio;
  43.     /**
  44.      * @ORM\OneToOne(targetEntity="App\Entity\Transaccion")
  45.      * @ORM\JoinColumn(name="transaccion_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
  46.      */
  47.     private $transaccion;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="cupon", type="string", length=255)
  52.      */
  53.     private $cupon;
  54.     public function __construct() {
  55.         $this->fechaEnvio = new \DateTime();
  56.     }
  57.     public function getId()
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function setEmail($email)
  62.     {
  63.         $this->email $email;
  64.         return $this;
  65.     }
  66.     public function getEmail()
  67.     {
  68.         return $this->email;
  69.     }
  70.     public function getTransaccion()
  71.     {
  72.         return $this->transaccion;
  73.     }
  74.     public function setTransaccion($transaccion)
  75.     {
  76.         $this->transaccion $transaccion;
  77.         return $this;
  78.     }
  79.     public function setFechaTransaccion($fechaTransaccion)
  80.     {
  81.         $this->fechaTransaccion $fechaTransaccion;
  82.         return $this;
  83.     }
  84.     public function getFechaTransaccion()
  85.     {
  86.         return $this->fechaTransaccion;
  87.     }
  88.     public function setFechaEnvio($fechaEnvio)
  89.     {
  90.         $this->fechaEnvio $fechaEnvio;
  91.         return $this;
  92.     }
  93.     public function getFechaEnvio()
  94.     {
  95.         return $this->fechaEnvio;
  96.     }
  97.     public function setCupon($cupon)
  98.     {
  99.         $this->cupon $cupon;
  100.         return $this;
  101.     }
  102.     public function getCupon()
  103.     {
  104.         return $this->cupon;
  105.     }
  106. }