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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PointRedemption.
  6.  *
  7.  * @ORM\Table(name="point_redemption")
  8.  * @ORM\Entity(repositoryClass="\Aviatur\GeneralBundle\Entity\PointRedemptionRepository")
  9.  */
  10. class PointRedemption
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="description", type="text")
  24.      */
  25.     private $description;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="key", type="string", length=100, nullable=false)
  30.      */
  31.     private $key;
  32.     /**
  33.      * @var \DateTime
  34.      *
  35.      * @ORM\Column(name="creationDate", type="datetime")
  36.      */
  37.     private $creationdate;
  38.     /**
  39.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  40.      */
  41.     private bool $isactive false;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="params", type="json")
  46.      */
  47.     private $params;
  48.     /**
  49.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PointRedemptionAgency", mappedBy="pointRedemption")
  50.      */
  51.     private $pointRedemptionAgency;
  52.     public function __construct()
  53.     {
  54.         $this->pointRedemptionAgency = new \Doctrine\Common\Collections\ArrayCollection();
  55.         $this->creationdate = new \DateTime();
  56.     }
  57.     /**
  58.      * Get id.
  59.      *
  60.      * @return int
  61.      */
  62.     public function getId()
  63.     {
  64.         return $this->id;
  65.     }
  66.     /**
  67.      * Set description.
  68.      *
  69.      * @param string $description
  70.      *
  71.      * @return PointRedemption
  72.      */
  73.     public function setDescription($description)
  74.     {
  75.         $this->description $description;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get description.
  80.      *
  81.      * @return string
  82.      */
  83.     public function getDescription()
  84.     {
  85.         return $this->description;
  86.     }
  87.     /**
  88.      * Set key.
  89.      *
  90.      * @param string $key
  91.      *
  92.      * @return PointRedemption
  93.      */
  94.     public function setKeyfoo($key)
  95.     {
  96.         $this->key $key;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get key.
  101.      *
  102.      * @return string
  103.      */
  104.     public function getKey()
  105.     {
  106.         return $this->key;
  107.     }
  108.     /**
  109.      * Set creationdate.
  110.      *
  111.      * @param \DateTime $creationdate
  112.      *
  113.      * @return PointRedemption
  114.      */
  115.     public function setCreationdate($creationdate)
  116.     {
  117.         $this->creationdate $creationdate;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get creationdate.
  122.      *
  123.      * @return \DateTime
  124.      */
  125.     public function getCreationdate()
  126.     {
  127.         return $this->creationdate;
  128.     }
  129.     /**
  130.      * Set isactive.
  131.      *
  132.      * @param bool $isactive
  133.      *
  134.      * @return PointRedemption
  135.      */
  136.     public function setIsactive($isactive)
  137.     {
  138.         $this->isactive $isactive;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get isactive.
  143.      *
  144.      * @return bool
  145.      */
  146.     public function getIsactive()
  147.     {
  148.         return $this->isactive;
  149.     }
  150.     /**
  151.      * Set params.
  152.      *
  153.      * @param string $params
  154.      *
  155.      * @return PointRedemption
  156.      */
  157.     public function setParams($params)
  158.     {
  159.         $this->params $params;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get params.
  164.      *
  165.      * @return array
  166.      */
  167.     public function getParams()
  168.     {
  169.         return $this->params;
  170.     }
  171.     /**
  172.      * Add pointRedemptionAgency.
  173.      *
  174.      * @return PointRedemption
  175.      */
  176.     public function addPointRedemptionAgency(\Aviatur\GeneralBundle\Entity\PointRedemptionAgency $pointRedemptionAgency)
  177.     {
  178.         $this->pointRedemptionAgency[] = $pointRedemptionAgency;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Remove pointRedemptionAgency.
  183.      */
  184.     public function removePointRedemptionAgency(\Aviatur\GeneralBundle\Entity\PointRedemptionAgency $pointRedemptionAgency)
  185.     {
  186.         $this->pointRedemptionAgency->removeElement($pointRedemptionAgency);
  187.     }
  188.     /**
  189.      * Get pointRedemptionAgency.
  190.      *
  191.      * @return \Doctrine\Common\Collections\Collection
  192.      */
  193.     public function getPointRedemptionAgency()
  194.     {
  195.         return $this->pointRedemptionAgency;
  196.     }
  197. }