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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PointRedemptionAgency.
  6.  *
  7.  * @ORM\Table(name="point_redemption_agency")
  8.  * @ORM\Entity
  9.  */
  10. class PointRedemptionAgency
  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.      *
  22.      * @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\PointRedemption", inversedBy="pointRedemptionAgency", cascade={"all"})
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="point_redemption_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\GeneralBundle\Entity\PointRedemption $pointRedemption null;
  28.     /**
  29.      *
  30.      * @ORM\ManyToOne(targetEntity="\Aviatur\AgencyBundle\Entity\Agency", inversedBy="pointRedemptionAgency", cascade={"all"})
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  36.     /**
  37.      * @var \DateTime
  38.      *
  39.      * @ORM\Column(name="creationDate", type="datetime")
  40.      */
  41.     private $creationdate;
  42.     /**
  43.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  44.      */
  45.     private bool $isactive false;
  46.     public function __construct()
  47.     {
  48.         $this->creationdate = new \DateTime();
  49.     }
  50.     /**
  51.      * Get id.
  52.      *
  53.      * @return int
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * Set creationdate.
  61.      *
  62.      * @param \DateTime $creationdate
  63.      *
  64.      * @return PointRedemptionAgency
  65.      */
  66.     public function setCreationdate($creationdate)
  67.     {
  68.         $this->creationdate $creationdate;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get creationdate.
  73.      *
  74.      * @return \DateTime
  75.      */
  76.     public function getCreationdate()
  77.     {
  78.         return $this->creationdate;
  79.     }
  80.     /**
  81.      * Set isactive.
  82.      *
  83.      * @param bool $isactive
  84.      *
  85.      * @return PointRedemptionAgency
  86.      */
  87.     public function setIsactive($isactive)
  88.     {
  89.         $this->isactive $isactive;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get isactive.
  94.      *
  95.      * @return bool
  96.      */
  97.     public function getIsactive()
  98.     {
  99.         return $this->isactive;
  100.     }
  101.     /**
  102.      * Set pointRedemption.
  103.      *
  104.      * @param \Aviatur\GeneralBundle\Entity\PointRedemption $pointRedemption
  105.      *
  106.      * @return PointRedemptionAgency
  107.      */
  108.     public function setPointRedemption(\Aviatur\GeneralBundle\Entity\PointRedemption $pointRedemption null)
  109.     {
  110.         $this->pointRedemption $pointRedemption;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get pointRedemption.
  115.      *
  116.      * @return \Aviatur\GeneralBundle\Entity\PointRedemption
  117.      */
  118.     public function getPointRedemption()
  119.     {
  120.         return $this->pointRedemption;
  121.     }
  122.     /**
  123.      * Set agency.
  124.      *
  125.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  126.      *
  127.      * @return PointRedemptionAgency
  128.      */
  129.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  130.     {
  131.         $this->agency $agency;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get agency.
  136.      *
  137.      * @return \Aviatur\AgencyBundle\Entity\Agency
  138.      */
  139.     public function getAgency()
  140.     {
  141.         return $this->agency;
  142.     }
  143. }