src/Aviatur/GeneralBundle/Entity/Metatransaction.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Metatransaction.
  6.  *
  7.  * @ORM\Table(name="metatransaction")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\MetatransactionRepository")
  9.  */
  10. class Metatransaction
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="transaction_id", type="integer")
  24.      */
  25.     private $transactionId;
  26.     /**
  27.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  28.      */
  29.     private bool $isactive false;
  30.     /**
  31.      * @var \DateTime
  32.      *
  33.      * @ORM\Column(name="datetime", type="datetime", nullable=false)
  34.      */
  35.     private $datetime;
  36.     /**
  37.      *
  38.      * @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\Metasearch", inversedBy="Metatransaction")
  39.      * @ORM\JoinColumns({
  40.      *   @ORM\JoinColumn(name="metasearch_id", referencedColumnName="id")
  41.      * })
  42.      */
  43.     private ?\Aviatur\GeneralBundle\Entity\Metasearch $metasearch null;
  44.     /**
  45.      * Get id.
  46.      *
  47.      * @return int
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * Set transactionId.
  55.      *
  56.      * @param int $transactionId
  57.      *
  58.      * @return Metatransaction
  59.      */
  60.     public function setTransactionId($transactionId)
  61.     {
  62.         $this->transactionId $transactionId;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get transactionId.
  67.      *
  68.      * @return int
  69.      */
  70.     public function getTransactionId()
  71.     {
  72.         return $this->transactionId;
  73.     }
  74.     /**
  75.      * Set isactive.
  76.      *
  77.      * @param bool $isactive
  78.      *
  79.      * @return Metatransaction
  80.      */
  81.     public function setIsactive($isactive)
  82.     {
  83.         $this->isactive $isactive;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get isactive.
  88.      *
  89.      * @return bool
  90.      */
  91.     public function getIsactive()
  92.     {
  93.         return $this->isactive;
  94.     }
  95.     /**
  96.      * Set datetime.
  97.      *
  98.      * @param \DateTime $datetime
  99.      *
  100.      * @return Metatransaction
  101.      */
  102.     public function setDatetime($datetime)
  103.     {
  104.         $this->datetime $datetime;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get datetime.
  109.      *
  110.      * @return \DateTime
  111.      */
  112.     public function getDatetime()
  113.     {
  114.         return $this->datetime;
  115.     }
  116.     /**
  117.      * Set metasearch.
  118.      *
  119.      * @return Metatransaction
  120.      */
  121.     public function setMetasearch(\Aviatur\GeneralBundle\Entity\Metasearch $metasearch)
  122.     {
  123.         $this->metasearch $metasearch;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get metasearch.
  128.      *
  129.      * @return \Aviatur\GeneralBundle\Entity\Metasearch
  130.      */
  131.     public function getMetasearch()
  132.     {
  133.         return $this->metasearch;
  134.     }
  135. }