<?php
namespace Aviatur\MpaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Provider.
*
* @ORM\Table(name="provider", indexes={@ORM\Index(name="IDX_6BB211CA91BE1328", columns={"product_type_id"})})
* @ORM\Entity(repositoryClass="Aviatur\MpaBundle\Entity\ProviderRepository")
*/
class Provider
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="providerIdentifier", type="integer", precision=10, scale=0, nullable=false)
*/
private $provideridentifier;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=500, nullable=false)
*/
private $name;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\PaymentType", inversedBy="provider")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="payment_type_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\GeneralBundle\Entity\PaymentType $paymentType = null;
/**
*
* @ORM\ManyToOne(targetEntity="ProductType", inversedBy="provider")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="product_type_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\MpaBundle\Entity\ProductType $productType = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\CarBundle\Entity\ConfigCarAgency", mappedBy="provider", cascade={"all"})
*/
private $configCarAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\ConfigFlightAgency", mappedBy="provider", cascade={"all"})
*/
private $configFlightAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\ConfigFlightCalendarAgency", mappedBy="provider", cascade={"all"})
*/
private $configFlightCalendarAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\HotelBundle\Entity\ConfigHotelAgency", mappedBy="provider", cascade={"all"})
*/
private $configHotelAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\PackageBundle\Entity\ConfigPackageAgency", mappedBy="provider", cascade={"all"})
*/
private $configPackageAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\InsuranceBundle\Entity\ConfigInsuranceAgency", mappedBy="provider", cascade={"all"})
*/
private $configInsuranceAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\BusBundle\Entity\ConfigBusAgency", mappedBy="provider", cascade={"all"})
*/
private $configBusAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\OrderProduct", mappedBy="provider", cascade={"all"})
*/
private $orderProduct;
/**
* @ORM\OneToMany(targetEntity="Aviatur\CruiserBundle\Entity\ConfigCruiserAgency", mappedBy="provider", cascade={"all"})
*/
private $configCruiserAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\HelicopterBundle\Entity\ConfigHelicopterAgency", mappedBy="provider", cascade={"all"})
*/
private $configHelicopterAgency;
/**
* @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\ConfigFlightAgencyActivityLog", mappedBy="provider", cascade={"all"})
*/
private $configFlightAgencyActivityLog;
public function __toString()
{
$return = $this->getName().'('.$this->getProvideridentifier().')';
return $return;
}
/**
* Constructor.
*/
public function __construct()
{
$this->orderProduct = new \Doctrine\Common\Collections\ArrayCollection();
$this->configCarAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configFlightAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configFlightCalendarAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configHotelAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configPackageAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configInsuranceAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configBusAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configCruiserAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configHelicopterAgency = new \Doctrine\Common\Collections\ArrayCollection();
$this->configFlightAgencyActivityLog = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Set id.
*
* @param int $id
*
* @return Provider
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set provideridentifier.
*
* @param int $providerIdentifier
*
* @return Provider
*/
public function setProvideridentifier($provideridentifier)
{
$this->provideridentifier = $provideridentifier;
return $this;
}
/**
* Get provideridentifier.
*
* @return int
*/
public function getProvideridentifier()
{
return $this->provideridentifier;
}
/**
* Set name.
*
* @param string $name
*
* @return Provider
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set paymentType.
*
* @param \Aviatur\GeneralBundle\Entity\PaymentType $paymentType
*
* @return Provider
*/
public function setPaymentType(\Aviatur\GeneralBundle\Entity\PaymentType $paymentType = null)
{
$this->paymentType = $paymentType;
return $this;
}
/**
* Get paymentType.
*
* @return \Aviatur\GeneralBundle\Entity\PaymentType
*/
public function getPaymentType()
{
return $this->paymentType;
}
/**
* Set productType.
*
* @param \Aviatur\MpaBundle\Entity\ProductType $productType
*
* @return Provider
*/
public function setProductType(\Aviatur\MpaBundle\Entity\ProductType $productType = null)
{
$this->productType = $productType;
return $this;
}
/**
* Get productType.
*
* @return \Aviatur\MpaBundle\Entity\ProductType
*/
public function getProductType()
{
return $this->productType;
}
/**
* Add configCarAgency.
*
* @return Provider
*/
public function addConfigCarAgency(\Aviatur\CarBundle\Entity\ConfigCarAgency $configCarAgency)
{
$this->configCarAgency[] = $configCarAgency;
return $this;
}
/**
* Remove configCarAgency.
*/
public function removeConfigCarAgency(\Aviatur\CarBundle\Entity\ConfigCarAgency $configCarAgency)
{
$this->configCarAgency->removeElement($configCarAgency);
}
/**
* Get configCarAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigCarAgency()
{
return $this->configCarAgency;
}
/**
* Add configFlightAgency.
*
* @return Provider
*/
public function addConfigFlightAgency(\Aviatur\FlightBundle\Entity\ConfigFlightAgency $configFlightAgency)
{
$this->configFlightAgency[] = $configFlightAgency;
return $this;
}
/**
* Remove configFlightAgency.
*/
public function removeConfigFlightAgency(\Aviatur\FlightBundle\Entity\ConfigFlightAgency $configFlightAgency)
{
$this->configFlightAgency->removeElement($configFlightAgency);
}
/**
* Get configFlightAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigFlightAgency()
{
return $this->configFlightAgency;
}
/**
* Add configFlightCalendarAgency.
*
* @return Provider
*/
public function addConfigFlightCalendarAgency(\Aviatur\FlightBundle\Entity\ConfigFlightCalendarAgency $configFlightCalendarAgency)
{
$this->configFlightCalendarAgency[] = $configFlightCalendarAgency;
return $this;
}
/**
* Remove configFlightCalendarAgency.
*/
public function removeConfigFlightCalendarAgency(\Aviatur\FlightBundle\Entity\ConfigFlightCalendarAgency $configFlightCalendarAgency)
{
$this->configFlightCalendarAgency->removeElement($configFlightCalendarAgency);
}
/**
* Get configFlightCalendarAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigFlightCalendarAgency()
{
return $this->configFlightCalendarAgency;
}
/**
* Add configHotelAgency.
*
* @return Provider
*/
public function addConfigHotelAgency(\Aviatur\HotelBundle\Entity\ConfigHotelAgency $configHotelAgency)
{
$this->configHotelAgency[] = $configHotelAgency;
return $this;
}
/**
* Remove configHotelAgency.
*/
public function removeConfigHotelAgency(\Aviatur\HotelBundle\Entity\ConfigHotelAgency $configHotelAgency)
{
$this->configHotelAgency->removeElement($configHotelAgency);
}
/**
* Get configHotelAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigHotelAgency()
{
return $this->configHotelAgency;
}
/**
* Add configPackageAgency.
*
* @return Agency
*/
public function addConfigPackageAgency(\Aviatur\PackageBundle\Entity\ConfigPackageAgency $configPackageAgency)
{
$this->configPackageAgency[] = $configPackageAgency;
return $this;
}
/**
* Remove configPackageAgency.
*/
public function removeConfigPackageAgency(\Aviatur\PackageBundle\Entity\ConfigPackageAgency $configPackageAgency)
{
$this->configPackageAgency->removeElement($configPackageAgency);
}
/**
* Get configPackageAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigPackageAgency()
{
return $this->configPackageAgency;
}
/**
* Add configInsuranceAgency.
*
* @return Agency
*/
public function addConfigInsuranceAgency(\Aviatur\InsuranceBundle\Entity\ConfigInsuranceAgency $configInsuranceAgency)
{
$this->configInsuranceAgency[] = $configInsuranceAgency;
return $this;
}
/**
* Remove configInsuranceAgency.
*/
public function removeConfigInsuranceAgency(\Aviatur\InsuranceBundle\Entity\ConfigInsuranceAgency $configInsuranceAgency)
{
$this->configInsuranceAgency->removeElement($configInsuranceAgency);
}
/**
* Get configInsuranceAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigInsuranceAgency()
{
return $this->configInsuranceAgency;
}
/**
* Add configBusAgency
*
* @param \Aviatur\BusBundle\Entity\configBusAgency $configBusAgency
* @return Agency
*/
public function addConfigBusAgency(\Aviatur\BusBundle\Entity\ConfigBusAgency $configBusAgency)
{
$this->configBusAgency[] = $configBusAgency;
return $this;
}
/**
* Remove configBusAgency
*
* @param \Aviatur\BusBundle\Entity\configBusAgency $configBusAgency
*/
public function removeConfigBusAgency(\Aviatur\BusBundle\Entity\ConfigBusAgency $configBusAgency)
{
$this->configBusAgency->removeElement($configBusAgency);
}
/**
* Get configBusAgency
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigBusAgency()
{
return $this->configBusAgency;
}
/**
* Add orderProduct.
*
* @return Provider
*/
public function addOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct)
{
$this->orderProduct[] = $orderProduct;
return $this;
}
/**
* Remove orderProduct.
*/
public function removeOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct)
{
$this->orderProduct->removeElement($orderProduct);
}
/**
* Get orderProduct.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getOrderProduct()
{
return $this->orderProduct;
}
/**
* Add configCruiserAgency.
*
* @return Provider
*/
public function addConfigCruiserAgency(\Aviatur\CruiserBundle\Entity\ConfigCruiserAgency $configCruiserAgency)
{
$this->configCruiserAgency[] = $configCruiserAgency;
return $this;
}
/**
* Remove configCruiserAgency.
*/
public function removeConfigCruiserAgency(\Aviatur\CruiserBundle\Entity\ConfigCruiserAgency $configCruiserAgency)
{
$this->configCruiserAgency->removeElement($configCruiserAgency);
}
/**
* Get configCruiserAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigCruiserAgency()
{
return $this->configCruiserAgency;
}
/**
* Add configHelicopterAgency.
*
* @return Provider
*/
public function addConfigHelicopterAgency(\Aviatur\HelicopterBundle\Entity\ConfigHelicopterAgency $configHelicopterAgency)
{
$this->configHelicopterAgency[] = $configHelicopterAgency;
return $this;
}
/**
* Remove configHelicopterAgency.
*/
public function removeConfigHelicopterAgency(\Aviatur\HelicopterBundle\Entity\ConfigHelicopterAgency $configHelicopterAgency)
{
$this->configHelicopterAgency->removeElement($configHelicopterAgency);
}
/**
* Get configHelicopterAgency.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigHelicopterAgency()
{
return $this->configHelicopterAgency;
}
/**
* Add ConfigFlightAgencyActivityLog.
*
* @return ConfigFlightAgencyActivityLog
*/
public function addConfigFlightAgencyActivityLog(\Aviatur\FlightBundle\Entity\ConfigFlightAgencyActivityLog $configFlightAgencyActivityLog)
{
$this->configFlightAgencyActivityLog[] = $configFlightAgencyActivityLog;
return $this;
}
/**
* Remove ConfigFlightAgencyActivityLog.
*/
public function removeConfigFlightAgencyActivityLog(\Aviatur\FlightBundle\Entity\ConfigFlightAgencyActivityLog $configFlightAgencyActivityLog)
{
$this->configFlightAgencyActivityLog->removeElement($configFlightAgencyActivityLog);
}
/**
* Get ConfigFlightAgencyActivityLog.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConfigFlightAgencyActivityLog()
{
return $this->configFlightAgencyActivityLog;
}
}