<?php
namespace Aviatur\CarBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ConfigCarAgency.
*
* @ORM\Table(name="config_car_agency", indexes={@ORM\Index(name="IDX_D70A1286CDEADB2A", columns={"agency_id"}), @ORM\Index(name="IDX_D70A1286A53A8AA", columns={"provider_id"})})
* @ORM\Entity(repositoryClass="Aviatur\CarBundle\Entity\ConfigCarAgencyRepository")
*/
class ConfigCarAgency
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="wsUrl", type="string", length=255, nullable=false)
*/
private $wsurl;
/**
* @var string
*
* @ORM\Column(name="message", type="string", length=255, nullable=false)
*/
private $message;
/**
* @var bool
*
* @ORM\Column(name="override", type="boolean", nullable=false)
*/
private $override;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\MpaBundle\Entity\Provider", inversedBy="configCarAgency")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\MpaBundle\Entity\Provider $provider = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="configCarAgency")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\AgencyBundle\Entity\Agency $agency = null;
/**
* @var string
*
* @ORM\Column(name="officeId", type="string", length=255, nullable=true)
*/
private $officeid;
/**
* @var string
*
* @ORM\Column(name="externalId", type="string", length=255, nullable=true)
*/
private $externalid;
/**
* @var bool
*
* @ORM\Column(name="isActive", type="boolean", nullable=false)
*/
private $isactive;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set wsurl.
*
* @param string $wsurl
*
* @return ConfigCarAgency
*/
public function setWsurl($wsurl)
{
$this->wsurl = $wsurl;
return $this;
}
/**
* Get wsurl.
*
* @return string
*/
public function getWsurl()
{
return $this->wsurl;
}
/**
* Set message.
*
* @param string $message
*
* @return ConfigCarAgency
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Get message.
*
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Set override.
*
* @param bool $override
*
* @return ConfigCarAgency
*/
public function setOverride($override)
{
$this->override = $override;
return $this;
}
/**
* Get override.
*
* @return bool
*/
public function getOverride()
{
return $this->override;
}
/**
* Set provider.
*
* @param \Aviatur\MpaBundle\Entity\Provider $provider
*
* @return ConfigCarAgency
*/
public function setProvider(\Aviatur\MpaBundle\Entity\Provider $provider = null)
{
$this->provider = $provider;
return $this;
}
/**
* Get provider.
*
* @return \Aviatur\MpaBundle\Entity\Provider
*/
public function getProvider()
{
return $this->provider;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return ConfigCarAgency
*/
public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency = null)
{
$this->agency = $agency;
return $this;
}
/**
* Get agency.
*
* @return \Aviatur\AgencyBundle\Entity\Agency
*/
public function getAgency()
{
return $this->agency;
}
/**
* Set officeid.
*
* @param string $officeid
*
* @return ConfigCarAgency
*/
public function setOfficeid($officeid)
{
$this->officeid = $officeid;
return $this;
}
/**
* Get officeid.
*
* @return string
*/
public function getOfficeid()
{
return $this->officeid;
}
/**
* Set externalid.
*
* @param string $externalid
*
* @return ConfigCarAgency
*/
public function setExternalid($externalid)
{
$this->externalid = $externalid;
return $this;
}
/**
* Get externalid.
*
* @return string
*/
public function getExternalid()
{
return $this->externalid;
}
/**
* Set isactive.
*
* @param bool $isactive
*
* @return ConfigHotelAgency
*/
public function setIsactive($isactive)
{
$this->isactive = $isactive;
return $this;
}
/**
* Get isactive.
*
* @return bool
*/
public function getIsactive()
{
return $this->isactive;
}
}