src/Aviatur/GiftVoucherBundle/Entity/ConfigGiftVoucherAgency.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GiftVoucherBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ConfigGiftVoucherAgency.
  6.  *
  7.  * @ORM\Table(name="config_giftvoucher_agency", indexes={@ORM\Index(name="provider_id", columns={"provider_id"}), @ORM\Index(name="agency_id", columns={"agency_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\GiftVoucherBundle\Entity\ConfigGiftVoucherAgencyRepository")
  9.  */
  10. class ConfigGiftVoucherAgency
  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 \Aviatur\MpaBundle\Entity\Provider
  22.      *
  23.      * @ORM\ManyToOne(targetEntity="Aviatur\MpaBundle\Entity\Provider", inversedBy="configGiftVoucherAgency")
  24.      * @ORM\JoinColumns({
  25.      *   @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
  26.      * })
  27.      */
  28.     private $provider;
  29.     /**
  30.      * @var \Aviatur\AgencyBundle\Entity\Agency
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="configGiftVoucherAgency")
  33.      * @ORM\JoinColumns({
  34.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  35.      * })
  36.      */
  37.     private $agency;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="params", type="string", length=512)
  42.      */
  43.     private $params;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="mails", type="string", length=255)
  48.      */
  49.     private $mails;
  50.     /**
  51.      * @var bool
  52.      *
  53.      * @ORM\Column(name="isActive", type="boolean", nullable=false)
  54.      */
  55.     private $isactive;
  56.     /**
  57.      * Constructor.
  58.      */
  59.     public function __construct()
  60.     {
  61.     }
  62.     /**
  63.      * Get id.
  64.      *
  65.      * @return int
  66.      */
  67.     public function getId()
  68.     {
  69.         return $this->id;
  70.     }
  71.     /**
  72.      * Set provider.
  73.      *
  74.      * @param \Aviatur\MpaBundle\Entity\Provider $provider
  75.      *
  76.      * @return ConfigGiftVoucherAgency
  77.      */
  78.     public function setProvider($provider)
  79.     {
  80.         $this->provider $provider;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get provider.
  85.      *
  86.      * @return int
  87.      */
  88.     public function getProvider()
  89.     {
  90.         return $this->provider;
  91.     }
  92.     /**
  93.      * Set agency.
  94.      *
  95.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  96.      *
  97.      * @return ConfigGiftVoucherAgency
  98.      */
  99.     public function setAgency($agency)
  100.     {
  101.         $this->agency $agency;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get agency.
  106.      *
  107.      * @return int
  108.      */
  109.     public function getAgency()
  110.     {
  111.         return $this->agency;
  112.     }
  113.     /**
  114.      * Set params.
  115.      *
  116.      * @param string $params
  117.      *
  118.      * @return ConfigGiftVoucherAgency
  119.      */
  120.     public function setParams($params)
  121.     {
  122.         $this->params $params;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get params.
  127.      *
  128.      * @return string
  129.      */
  130.     public function getParams()
  131.     {
  132.         return $this->params;
  133.     }
  134.     /**
  135.      * Set mails.
  136.      *
  137.      * @param string $mails
  138.      *
  139.      * @return ConfigGiftVoucherAgency
  140.      */
  141.     public function setMails($mails)
  142.     {
  143.         $this->mails $mails;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get mails.
  148.      *
  149.      * @return string
  150.      */
  151.     public function getMails()
  152.     {
  153.         return $this->mails;
  154.     }
  155.     /**
  156.      * Set isactive.
  157.      *
  158.      * @param bool $isactive
  159.      *
  160.      * @return ConfigGiftVoucherAgency
  161.      */
  162.     public function setIsactive($isactive)
  163.     {
  164.         $this->isactive $isactive;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get isactive.
  169.      *
  170.      * @return bool
  171.      */
  172.     public function getIsactive()
  173.     {
  174.         return $this->isactive;
  175.     }
  176. }