<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PaymentMethodAgency.
*
* @ORM\Table(name="payment_method_agency", indexes={@ORM\Index(name="IDX_D2AAE0F7CDEADB2A", columns={"agency_id"}), @ORM\Index(name="IDX_D2AAE0F7F57FBCCC", columns={"payment_method_id"})})
* @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PaymentMethodAgencyRepository")
*/
class PaymentMethodAgency
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="siteCode", type="string", length=255, nullable=false)
*/
private $sitecode;
/**
* @var string
*
* @ORM\Column(name="tranKey", type="string", length=255, nullable=false)
*/
private $trankey;
/**
* @var bool
*
* @ORM\Column(name="isActive", type="boolean", nullable=false)
*/
private $isactive;
/**
* @var bool
*
* @ORM\Column(name="isTest", type="boolean", nullable=false)
*/
private $istest;
/**
* @var string
*
* @ORM\Column(name="user", type="string", length=255, nullable=true)
*/
private $user;
/**
* @var string
*
* @ORM\Column(name="password", type="string", length=255, nullable=true)
*/
private $password;
/**
* @var string
*
* @ORM\Column(name="currency", type="string", length=255, nullable=false)
*/
private $currency;
/**
* @var string
*
* @ORM\Column(name="testEndpoint", type="string", length=255, nullable=false)
*/
private $testendpoint;
/**
* @var string
*
* @ORM\Column(name="productionEndpoint", type="string", length=255, nullable=false)
*/
private $productionendpoint;
/**
* @var string
*
* @ORM\Column(name="siteId", type="string", length=255, nullable=false)
*/
private $siteid;
/**
* @var string
*
* @ORM\Column(name="placeToPayRest", type="string", length=1, nullable=false)
*/
private $placetopayrest;
/**
*
* @ORM\ManyToOne(targetEntity="PaymentMethod", inversedBy="paymentMethodAgency")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="payment_method_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="paymentMethodAgency")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\AgencyBundle\Entity\Agency $agency = null;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set sitecode.
*
* @param string $sitecode
*
* @return PaymentMethodAgency
*/
public function setSitecode($sitecode)
{
$this->sitecode = $sitecode;
return $this;
}
/**
* Get sitecode.
*
* @return string
*/
public function getSitecode()
{
return $this->sitecode;
}
/**
* Set trankey.
*
* @param string $trankey
*
* @return PaymentMethodAgency
*/
public function setTrankey($trankey)
{
$this->trankey = $trankey;
return $this;
}
/**
* Get trankey.
*
* @return string
*/
public function getTrankey()
{
return $this->trankey;
}
/**
* Set isactive.
*
* @param string $isactive
*
* @return PaymentMethodAgency
*/
public function setIsactive($isactive)
{
$this->isactive = $isactive;
return $this;
}
/**
* Get isactive.
*
* @return bool
*/
public function getIsactive()
{
return $this->isactive;
}
/**
* Set istest.
*
* @param string $istest
*
* @return PaymentMethodAgency
*/
public function setIstest($istest)
{
$this->istest = $istest;
return $this;
}
/**
* Get istest.
*
* @return bool
*/
public function getIstest()
{
return $this->istest;
}
/**
* Set user.
*
* @param string $user
*
* @return PaymentMethodAgency
*/
public function setUser($user)
{
$this->user = $user;
return $this;
}
/**
* Get user.
*
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* Set password.
*
* @param string $password
*
* @return PaymentMethodAgency
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}
/**
* Get password.
*
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Set currency.
*
* @param string $currency
*
* @return PaymentMethodAgency
*/
public function setCurrency($currency)
{
$this->currency = $currency;
return $this;
}
/**
* Get currency.
*
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
/**
* Set testendpoint.
*
* @param string $testendpoint
*
* @return PaymentMethodAgency
*/
public function setTestendpoint($testendpoint)
{
$this->testendpoint = $testendpoint;
return $this;
}
/**
* Get testendpoint.
*
* @return string
*/
public function getTestendpoint()
{
return $this->testendpoint;
}
/**
* Set productionendpoint.
*
* @param string $productionendpoint
*
* @return PaymentMethodAgency
*/
public function setProductionendpoint($productionendpoint)
{
$this->productionendpoint = $productionendpoint;
return $this;
}
/**
* Get productionendpoint.
*
* @return string
*/
public function getProductionendpoint()
{
return $this->productionendpoint;
}
/**
* Set siteid.
*
* @param string $siteid
*
* @return PaymentMethodAgency
*/
public function setSiteid($siteid)
{
$this->siteid = $siteid;
return $this;
}
/**
* Get siteid.
*
* @return string
*/
public function getSiteid()
{
return $this->siteid;
}
/**
* Set placeToPayRest.
*
* @param string $placetopayrest
*
* @return PaymentMethodAgency
*/
public function setPlacetopayrest($placetopayrest)
{
$this->placetopayrest = $placetopayrest;
return $this;
}
/**
* Get placeToPayRest.
*
* @return string
*/
public function getPlacetopayrest()
{
return $this->placetopayrest;
}
/**
* Set paymentMethod.
*
* @param \Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod
*
* @return PaymentMethodAgency
*/
public function setPaymentMethod(\Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod = null)
{
$this->paymentMethod = $paymentMethod;
return $this;
}
/**
* Get paymentMethod.
*
* @return \Aviatur\GeneralBundle\Entity\PaymentMethod
*/
public function getPaymentMethod()
{
return $this->paymentMethod;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return PaymentMethodAgency
*/
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;
}
}