<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PointRedemption.
*
* @ORM\Table(name="point_redemption")
* @ORM\Entity(repositoryClass="\Aviatur\GeneralBundle\Entity\PointRedemptionRepository")
*/
class PointRedemption
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="description", type="text")
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="key", type="string", length=100, nullable=false)
*/
private $key;
/**
* @var \DateTime
*
* @ORM\Column(name="creationDate", type="datetime")
*/
private $creationdate;
/**
* @ORM\Column(name="isActive", type="boolean", nullable=true)
*/
private bool $isactive = false;
/**
* @var string
*
* @ORM\Column(name="params", type="json")
*/
private $params;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PointRedemptionAgency", mappedBy="pointRedemption")
*/
private $pointRedemptionAgency;
public function __construct()
{
$this->pointRedemptionAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->creationdate = new \DateTime();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set description.
*
* @param string $description
*
* @return PointRedemption
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set key.
*
* @param string $key
*
* @return PointRedemption
*/
public function setKeyfoo($key)
{
$this->key = $key;
return $this;
}
/**
* Get key.
*
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Set creationdate.
*
* @param \DateTime $creationdate
*
* @return PointRedemption
*/
public function setCreationdate($creationdate)
{
$this->creationdate = $creationdate;
return $this;
}
/**
* Get creationdate.
*
* @return \DateTime
*/
public function getCreationdate()
{
return $this->creationdate;
}
/**
* Set isactive.
*
* @param bool $isactive
*
* @return PointRedemption
*/
public function setIsactive($isactive)
{
$this->isactive = $isactive;
return $this;
}
/**
* Get isactive.
*
* @return bool
*/
public function getIsactive()
{
return $this->isactive;
}
/**
* Set params.
*
* @param string $params
*
* @return PointRedemption
*/
public function setParams($params)
{
$this->params = $params;
return $this;
}
/**
* Get params.
*
* @return array
*/
public function getParams()
{
return $this->params;
}
/**
* Add pointRedemptionAgency.
*
* @return PointRedemption
*/
public function addPointRedemptionAgency(\Aviatur\GeneralBundle\Entity\PointRedemptionAgency $pointRedemptionAgency)
{
$this->pointRedemptionAgency[] = $pointRedemptionAgency;
return $this;
}
/**
* Remove pointRedemptionAgency.
*/
public function removePointRedemptionAgency(\Aviatur\GeneralBundle\Entity\PointRedemptionAgency $pointRedemptionAgency)
{
$this->pointRedemptionAgency->removeElement($pointRedemptionAgency);
}
/**
* Get pointRedemptionAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPointRedemptionAgency()
{
return $this->pointRedemptionAgency;
}
}