src/Aviatur/HotelBundle/Entity/ConfigHotelAgency.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\HotelBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ConfigHotelAgency.
  6.  *
  7.  * @ORM\Table(name="config_hotel_agency", indexes={@ORM\Index(name="IDX_3F2EB5F6A53A8AA", columns={"provider_id"}), @ORM\Index(name="IDX_3F2EB5F6CDEADB2A", columns={"agency_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\HotelBundle\Entity\ConfigHotelAgencyRepository")
  9.  */
  10. class ConfigHotelAgency
  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="wsUrl", type="string", length=255, nullable=false)
  24.      */
  25.     private $wsurl;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="urlType", type="string", length=3, nullable=true)
  30.      */
  31.     private $urltype;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="type", type="string", length=255, nullable=false)
  36.      */
  37.     private $type;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="payment_type", type="string", length=255, nullable=false)
  42.      */
  43.     private $paymenttype;
  44.     /**
  45.      * @var bool
  46.      *
  47.      * @ORM\Column(name="isActive", type="boolean", nullable=false)
  48.      */
  49.     private $isactive;
  50.     /**
  51.      *
  52.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="configHotelAgency")
  53.      * @ORM\JoinColumns({
  54.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  55.      * })
  56.      */
  57.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  58.     /**
  59.      *
  60.      * @ORM\ManyToOne(targetEntity="Aviatur\MpaBundle\Entity\Provider", inversedBy="configHotelAgency")
  61.      * @ORM\JoinColumns({
  62.      *   @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
  63.      * })
  64.      */
  65.     private ?\Aviatur\MpaBundle\Entity\Provider $provider null;
  66.     /**
  67.      * @ORM\OneToMany(targetEntity="Aviatur\HotelBundle\Entity\Markup", mappedBy="configHotelAgency", cascade={"all"})
  68.      */
  69.     private $markup;
  70.     /**
  71.      * Constructor.
  72.      */
  73.     public function __construct()
  74.     {
  75.         $this->markup = new \Doctrine\Common\Collections\ArrayCollection();
  76.     }
  77.     public function __toString()
  78.     {
  79.         $return 'id:'.$this->getId();
  80.         return (string) $return;
  81.     }
  82.     /**
  83.      * Get id.
  84.      *
  85.      * @return int
  86.      */
  87.     public function getId()
  88.     {
  89.         return $this->id;
  90.     }
  91.     /**
  92.      * Set wsurl.
  93.      *
  94.      * @param string $wsurl
  95.      *
  96.      * @return ConfigHotelAgency
  97.      */
  98.     public function setWsurl($wsurl)
  99.     {
  100.         $this->wsurl $wsurl;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get wsurl.
  105.      *
  106.      * @return string
  107.      */
  108.     public function getWsurl()
  109.     {
  110.         return $this->wsurl;
  111.     }
  112.     /**
  113.      * Set urltype.
  114.      *
  115.      * @param string $urltype
  116.      *
  117.      * @return ConfigHotelAgency
  118.      */
  119.     public function setUrltype($urltype)
  120.     {
  121.         $this->urltype $urltype;
  122.         return $this;
  123.     }
  124.     /**
  125.      * Get urltype.
  126.      *
  127.      * @return string
  128.      */
  129.     public function getUrltype()
  130.     {
  131.         return $this->urltype;
  132.     }
  133.     /**
  134.      * Set type.
  135.      *
  136.      * @param string $type
  137.      *
  138.      * @return ConfigHotelAgency
  139.      */
  140.     public function setType($type)
  141.     {
  142.         $this->type $type;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Get type.
  147.      *
  148.      * @return string
  149.      */
  150.     public function getType()
  151.     {
  152.         return $this->type;
  153.     }
  154.      /**
  155.      * Set paymenttype.
  156.      *
  157.      * @param string $paymenttype
  158.      *
  159.      * @return ConfigHotelAgency
  160.      */
  161.     public function setPaymentType($paymenttype)
  162.     {
  163.         $this->paymenttype $paymenttype;
  164.         return $this;
  165.     }
  166.     /**
  167.      * Get paymenttype.
  168.      *
  169.      * @return string
  170.      */
  171.     public function getPaymentType()
  172.     {
  173.         return $this->paymenttype;
  174.     }
  175.     /**
  176.      * Set isactive.
  177.      *
  178.      * @param bool $isactive
  179.      *
  180.      * @return ConfigHotelAgency
  181.      */
  182.     public function setIsactive($isactive)
  183.     {
  184.         $this->isactive $isactive;
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get isactive.
  189.      *
  190.      * @return bool
  191.      */
  192.     public function getIsactive()
  193.     {
  194.         return $this->isactive;
  195.     }
  196.     /**
  197.      * Set agency.
  198.      *
  199.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  200.      *
  201.      * @return ConfigHotelAgency
  202.      */
  203.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  204.     {
  205.         $this->agency $agency;
  206.         return $this;
  207.     }
  208.     /**
  209.      * Get agency.
  210.      *
  211.      * @return \Aviatur\AgencyBundle\Entity\Agency
  212.      */
  213.     public function getAgency()
  214.     {
  215.         return $this->agency;
  216.     }
  217.     /**
  218.      * Set provider.
  219.      *
  220.      * @param \Aviatur\MpaBundle\Entity\Provider $provider
  221.      *
  222.      * @return ConfigHotelAgency
  223.      */
  224.     public function setProvider(\Aviatur\MpaBundle\Entity\Provider $provider null)
  225.     {
  226.         $this->provider $provider;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get provider.
  231.      *
  232.      * @return \Aviatur\MpaBundle\Entity\Provider
  233.      */
  234.     public function getProvider()
  235.     {
  236.         return $this->provider;
  237.     }
  238.     /**
  239.      * Add markup.
  240.      *
  241.      * @return ConfigHotelAgency
  242.      */
  243.     public function addMarkup(\Aviatur\HotelBundle\Entity\Markup $markup)
  244.     {
  245.         $this->markup[] = $markup;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Remove markup.
  250.      */
  251.     public function removeMarkup(\Aviatur\HotelBundle\Entity\Markup $markup)
  252.     {
  253.         $this->markup->removeElement($markup);
  254.     }
  255.     /**
  256.      * Get markup.
  257.      *
  258.      * @return \Doctrine\Common\Collections\Collection
  259.      */
  260.     public function getMarkup()
  261.     {
  262.         return $this->markup;
  263.     }
  264. }