src/Entity/EmailTransaccionAbandonada.php line 19
- <?php
- namespace App\Entity;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- use Symfony\Component\Validator\Constraints as Assert;
- use Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait;
- use Knp\DoctrineBehaviors\Contract\Entity\SluggableInterface;
- /**
- * Category
- *
- * @ORM\Table(name="email_transaccion_abandonada")
- * @ORM\Entity
- */
- class EmailTransaccionAbandonada
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="email", type="string", length=255)
- */
- private $email;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="fecha_transaccion", type="datetime", nullable=false)
- */
- private $fechaTransaccion;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="fecha_envio", type="datetime", nullable=false)
- */
- private $fechaEnvio;
- /**
- * @ORM\OneToOne(targetEntity="App\Entity\Transaccion")
- * @ORM\JoinColumn(name="transaccion_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
- */
- private $transaccion;
- /**
- * @var string
- *
- * @ORM\Column(name="cupon", type="string", length=255)
- */
- private $cupon;
- public function __construct() {
- $this->fechaEnvio = new \DateTime();
- }
- public function getId()
- {
- return $this->id;
- }
- public function setEmail($email)
- {
- $this->email = $email;
- return $this;
- }
- public function getEmail()
- {
- return $this->email;
- }
- public function getTransaccion()
- {
- return $this->transaccion;
- }
- public function setTransaccion($transaccion)
- {
- $this->transaccion = $transaccion;
- return $this;
- }
- public function setFechaTransaccion($fechaTransaccion)
- {
- $this->fechaTransaccion = $fechaTransaccion;
- return $this;
- }
- public function getFechaTransaccion()
- {
- return $this->fechaTransaccion;
- }
- public function setFechaEnvio($fechaEnvio)
- {
- $this->fechaEnvio = $fechaEnvio;
- return $this;
- }
- public function getFechaEnvio()
- {
- return $this->fechaEnvio;
- }
- public function setCupon($cupon)
- {
- $this->cupon = $cupon;
- return $this;
- }
- public function getCupon()
- {
- return $this->cupon;
- }
- }