src/Aviatur/GeneralBundle/Entity/PaymentMethodAgency.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PaymentMethodAgency.
  6.  *
  7.  * @ORM\Table(name="payment_method_agency", indexes={@ORM\Index(name="IDX_D2AAE0F7CDEADB2A", columns={"agency_id"}), @ORM\Index(name="IDX_D2AAE0F7F57FBCCC", columns={"payment_method_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PaymentMethodAgencyRepository")
  9.  */
  10. class PaymentMethodAgency
  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="siteCode", type="string", length=255, nullable=false)
  24.      */
  25.     private $sitecode;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="tranKey", type="string", length=255, nullable=false)
  30.      */
  31.     private $trankey;
  32.     /**
  33.      * @var bool
  34.      *
  35.      * @ORM\Column(name="isActive", type="boolean", nullable=false)
  36.      */
  37.     private $isactive;
  38.     /**
  39.      * @var bool
  40.      *
  41.      * @ORM\Column(name="isTest", type="boolean", nullable=false)
  42.      */
  43.     private $istest;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="user", type="string", length=255, nullable=true)
  48.      */
  49.     private $user;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="password", type="string", length=255, nullable=true)
  54.      */
  55.     private $password;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="currency", type="string", length=255, nullable=false)
  60.      */
  61.     private $currency;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="testEndpoint", type="string", length=255, nullable=false)
  66.      */
  67.     private $testendpoint;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="productionEndpoint", type="string", length=255, nullable=false)
  72.      */
  73.     private $productionendpoint;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="siteId", type="string", length=255, nullable=false)
  78.      */
  79.     private $siteid;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="placeToPayRest", type="string", length=1, nullable=false)
  84.      */
  85.     private $placetopayrest;
  86.     /**
  87.      *
  88.      * @ORM\ManyToOne(targetEntity="PaymentMethod", inversedBy="paymentMethodAgency")
  89.      * @ORM\JoinColumns({
  90.      *   @ORM\JoinColumn(name="payment_method_id", referencedColumnName="id")
  91.      * })
  92.      */
  93.     private ?\Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod null;
  94.     /**
  95.      *
  96.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="paymentMethodAgency")
  97.      * @ORM\JoinColumns({
  98.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  99.      * })
  100.      */
  101.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  102.     /**
  103.      * Get id.
  104.      *
  105.      * @return int
  106.      */
  107.     public function getId()
  108.     {
  109.         return $this->id;
  110.     }
  111.     /**
  112.      * Set sitecode.
  113.      *
  114.      * @param string $sitecode
  115.      *
  116.      * @return PaymentMethodAgency
  117.      */
  118.     public function setSitecode($sitecode)
  119.     {
  120.         $this->sitecode $sitecode;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get sitecode.
  125.      *
  126.      * @return string
  127.      */
  128.     public function getSitecode()
  129.     {
  130.         return $this->sitecode;
  131.     }
  132.     /**
  133.      * Set trankey.
  134.      *
  135.      * @param string $trankey
  136.      *
  137.      * @return PaymentMethodAgency
  138.      */
  139.     public function setTrankey($trankey)
  140.     {
  141.         $this->trankey $trankey;
  142.         return $this;
  143.     }
  144.     /**
  145.      * Get trankey.
  146.      *
  147.      * @return string
  148.      */
  149.     public function getTrankey()
  150.     {
  151.         return $this->trankey;
  152.     }
  153.     /**
  154.      * Set isactive.
  155.      *
  156.      * @param string $isactive
  157.      *
  158.      * @return PaymentMethodAgency
  159.      */
  160.     public function setIsactive($isactive)
  161.     {
  162.         $this->isactive $isactive;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get isactive.
  167.      *
  168.      * @return bool
  169.      */
  170.     public function getIsactive()
  171.     {
  172.         return $this->isactive;
  173.     }
  174.     /**
  175.      * Set istest.
  176.      *
  177.      * @param string $istest
  178.      *
  179.      * @return PaymentMethodAgency
  180.      */
  181.     public function setIstest($istest)
  182.     {
  183.         $this->istest $istest;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get istest.
  188.      *
  189.      * @return bool
  190.      */
  191.     public function getIstest()
  192.     {
  193.         return $this->istest;
  194.     }
  195.     /**
  196.      * Set user.
  197.      *
  198.      * @param string $user
  199.      *
  200.      * @return PaymentMethodAgency
  201.      */
  202.     public function setUser($user)
  203.     {
  204.         $this->user $user;
  205.         return $this;
  206.     }
  207.     /**
  208.      * Get user.
  209.      *
  210.      * @return string
  211.      */
  212.     public function getUser()
  213.     {
  214.         return $this->user;
  215.     }
  216.     /**
  217.      * Set password.
  218.      *
  219.      * @param string $password
  220.      *
  221.      * @return PaymentMethodAgency
  222.      */
  223.     public function setPassword($password)
  224.     {
  225.         $this->password $password;
  226.         return $this;
  227.     }
  228.     /**
  229.      * Get password.
  230.      *
  231.      * @return string
  232.      */
  233.     public function getPassword()
  234.     {
  235.         return $this->password;
  236.     }
  237.     /**
  238.      * Set currency.
  239.      *
  240.      * @param string $currency
  241.      *
  242.      * @return PaymentMethodAgency
  243.      */
  244.     public function setCurrency($currency)
  245.     {
  246.         $this->currency $currency;
  247.         return $this;
  248.     }
  249.     /**
  250.      * Get currency.
  251.      *
  252.      * @return string
  253.      */
  254.     public function getCurrency()
  255.     {
  256.         return $this->currency;
  257.     }
  258.     /**
  259.      * Set testendpoint.
  260.      *
  261.      * @param string $testendpoint
  262.      *
  263.      * @return PaymentMethodAgency
  264.      */
  265.     public function setTestendpoint($testendpoint)
  266.     {
  267.         $this->testendpoint $testendpoint;
  268.         return $this;
  269.     }
  270.     /**
  271.      * Get testendpoint.
  272.      *
  273.      * @return string
  274.      */
  275.     public function getTestendpoint()
  276.     {
  277.         return $this->testendpoint;
  278.     }
  279.     /**
  280.      * Set productionendpoint.
  281.      *
  282.      * @param string $productionendpoint
  283.      *
  284.      * @return PaymentMethodAgency
  285.      */
  286.     public function setProductionendpoint($productionendpoint)
  287.     {
  288.         $this->productionendpoint $productionendpoint;
  289.         return $this;
  290.     }
  291.     /**
  292.      * Get productionendpoint.
  293.      *
  294.      * @return string
  295.      */
  296.     public function getProductionendpoint()
  297.     {
  298.         return $this->productionendpoint;
  299.     }
  300.     /**
  301.      * Set siteid.
  302.      *
  303.      * @param string $siteid
  304.      *
  305.      * @return PaymentMethodAgency
  306.      */
  307.     public function setSiteid($siteid)
  308.     {
  309.         $this->siteid $siteid;
  310.         return $this;
  311.     }
  312.     /**
  313.      * Get siteid.
  314.      *
  315.      * @return string
  316.      */
  317.     public function getSiteid()
  318.     {
  319.         return $this->siteid;
  320.     }
  321.     /**
  322.      * Set placeToPayRest.
  323.      *
  324.      * @param string $placetopayrest
  325.      *
  326.      * @return PaymentMethodAgency
  327.      */
  328.     public function setPlacetopayrest($placetopayrest)
  329.     {
  330.         $this->placetopayrest $placetopayrest;
  331.         return $this;
  332.     }
  333.     /**
  334.      * Get placeToPayRest.
  335.      *
  336.      * @return string
  337.      */
  338.     public function getPlacetopayrest()
  339.     {
  340.         return $this->placetopayrest;
  341.     }
  342.     /**
  343.      * Set paymentMethod.
  344.      *
  345.      * @param \Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod
  346.      *
  347.      * @return PaymentMethodAgency
  348.      */
  349.     public function setPaymentMethod(\Aviatur\GeneralBundle\Entity\PaymentMethod $paymentMethod null)
  350.     {
  351.         $this->paymentMethod $paymentMethod;
  352.         return $this;
  353.     }
  354.     /**
  355.      * Get paymentMethod.
  356.      *
  357.      * @return \Aviatur\GeneralBundle\Entity\PaymentMethod
  358.      */
  359.     public function getPaymentMethod()
  360.     {
  361.         return $this->paymentMethod;
  362.     }
  363.     /**
  364.      * Set agency.
  365.      *
  366.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  367.      *
  368.      * @return PaymentMethodAgency
  369.      */
  370.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  371.     {
  372.         $this->agency $agency;
  373.         return $this;
  374.     }
  375.     /**
  376.      * Get agency.
  377.      *
  378.      * @return \Aviatur\AgencyBundle\Entity\Agency
  379.      */
  380.     public function getAgency()
  381.     {
  382.         return $this->agency;
  383.     }
  384. }