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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Card.
  6.  *
  7.  * @ORM\Table(name="card")
  8.  * @ORM\Entity(repositoryClass="CardRepository")
  9.  */
  10. class Card
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="paymentGatewayCode", type="string", length=10)
  24.      */
  25.     private $paymentgatewaycode;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="warrantyCode", type="string", length=10)
  30.      */
  31.     private $warrantycode;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="emissionCode", type="string", length=10)
  36.      */
  37.     private $emissioncode;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="cybersourceCode", type="string", length=10)
  42.      */
  43.     private $cybersourcecode;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="worldpayCode", type="string", length=10)
  48.      */
  49.     private $worldpaycode;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="description", type="string", length=45)
  54.      */
  55.     private $description;
  56.     /**
  57.      * @var int
  58.      *
  59.      * @ORM\Column(name="isActive", type="integer", length=1)
  60.      */
  61.     private $isactive;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="ranges", type="text", nullable=true)
  66.      */
  67.     private $ranges null;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="lengths", type="text", nullable=true)
  72.      */
  73.     private $lengths null;
  74.     /**
  75.      * @var int
  76.      *
  77.      * @ORM\Column(name="luhn", type="integer", length=1)
  78.      */
  79.     private $luhn 0;
  80.     /**
  81.      * @var int
  82.      *
  83.      * @ORM\Column(name="cvvDigits", type="integer", length=4)
  84.      */
  85.     private $cvvdigits 3;
  86.     /**
  87.      * @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\AirlineValidation", mappedBy="card", cascade={"all"})
  88.      */
  89.     private $airlineValidation;
  90.     /**
  91.      * Constructor.
  92.      */
  93.     public function __construct()
  94.     {
  95.         $this->airlineValidation = new \Doctrine\Common\Collections\ArrayCollection();
  96.     }
  97.     /**
  98.      * Get id.
  99.      *
  100.      * @return int
  101.      */
  102.     public function getId()
  103.     {
  104.         return $this->id;
  105.     }
  106.     /**
  107.      * Set paymentgatewaycode.
  108.      *
  109.      * @param string $paymentgatewaycode
  110.      *
  111.      * @return Card
  112.      */
  113.     public function setPaymentgatewaycode($paymentgatewaycode)
  114.     {
  115.         $this->paymentgatewaycode $paymentgatewaycode;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get paymentgatewaycode.
  120.      *
  121.      * @return string
  122.      */
  123.     public function getPaymentgatewaycode()
  124.     {
  125.         return $this->paymentgatewaycode;
  126.     }
  127.     /**
  128.      * Set warrantycode.
  129.      *
  130.      * @param string $warrantycode
  131.      *
  132.      * @return Card
  133.      */
  134.     public function setWarrantycode($warrantycode)
  135.     {
  136.         $this->warrantycode $warrantycode;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get warrantycode.
  141.      *
  142.      * @return string
  143.      */
  144.     public function getWarrantycode()
  145.     {
  146.         return $this->warrantycode;
  147.     }
  148.     /**
  149.      * Set emissioncode.
  150.      *
  151.      * @param string $emissioncode
  152.      *
  153.      * @return Card
  154.      */
  155.     public function setEmissioncode($emissioncode)
  156.     {
  157.         $this->emissioncode $emissioncode;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get emissioncode.
  162.      *
  163.      * @return string
  164.      */
  165.     public function getEmissioncode()
  166.     {
  167.         return $this->emissioncode;
  168.     }
  169.     /**
  170.      * Set cybersourcecode.
  171.      *
  172.      * @param string $cybersourcecode
  173.      *
  174.      * @return Card
  175.      */
  176.     public function setCybersourcecode($cybersourcecode)
  177.     {
  178.         $this->cybersourcecode $cybersourcecode;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Get cybersourcecode.
  183.      *
  184.      * @return string
  185.      */
  186.     public function getCybersourcecode()
  187.     {
  188.         return $this->cybersourcecode;
  189.     }
  190.     /**
  191.      * Set description.
  192.      *
  193.      * @param string $description
  194.      *
  195.      * @return Card
  196.      */
  197.     public function setDescription($description)
  198.     {
  199.         $this->description $description;
  200.         return $this;
  201.     }
  202.     /**
  203.      * Get description.
  204.      *
  205.      * @return string
  206.      */
  207.     public function getDescription()
  208.     {
  209.         return $this->description;
  210.     }
  211.     /**
  212.      * Set worldpaycode.
  213.      *
  214.      * @param string $worldpaycode
  215.      *
  216.      * @return Card
  217.      */
  218.     public function setWorldpaycode($worldpaycode)
  219.     {
  220.         $this->worldpaycode $worldpaycode;
  221.         return $this;
  222.     }
  223.     /**
  224.      * Get worldpaycode.
  225.      *
  226.      * @return string
  227.      */
  228.     public function getWorldpaycode()
  229.     {
  230.         return $this->worldpaycode;
  231.     }
  232.     /**
  233.      * Add airlineValidation.
  234.      *
  235.      * @return Agency
  236.      */
  237.     public function addAirlineValidation(\Aviatur\FlightBundle\Entity\AirlineValidation $airlineValidation)
  238.     {
  239.         $this->airlineValidation[] = $airlineValidation;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Remove airlineValidation.
  244.      */
  245.     public function removeChurning(\Aviatur\FlightBundle\Entity\AirlineValidation $airlineValidation)
  246.     {
  247.         $this->airlineValidation->removeElement($airlineValidation);
  248.     }
  249.     /**
  250.      * Get airlineValidation.
  251.      *
  252.      * @return \Doctrine\Common\Collections\Collection
  253.      */
  254.     public function getChurning()
  255.     {
  256.         return $this->airlineValidation;
  257.     }
  258.     /**
  259.      * Get isactive.
  260.      *
  261.      * @return int
  262.      */
  263.     public function getisactive()
  264.     {
  265.         return $this->isactive;
  266.     }
  267.     /**
  268.      * Set ranges.
  269.      *
  270.      * @param string $ranges
  271.      *
  272.      * @return Card
  273.      */
  274.     public function setRanges($ranges)
  275.     {
  276.         $this->ranges $ranges;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Set lengths.
  281.      *
  282.      * @param string $lengths
  283.      *
  284.      * @return Card
  285.      */
  286.     public function setLengths($lengths)
  287.     {
  288.         $this->lengths $lengths;
  289.         return $this;
  290.     }
  291.     /**
  292.      * Set luhn.
  293.      *
  294.      * @param int $luhn
  295.      *
  296.      * @return Card
  297.      */
  298.     public function setLuhn($luhn)
  299.     {
  300.         $this->luhn $luhn;
  301.         return $this;
  302.     }
  303.     /**
  304.      * Set cvvDigits.
  305.      *
  306.      * @param int $cvvdigits
  307.      *
  308.      * @return Card
  309.      */
  310.     public function setCvvdigits($cvvdigits)
  311.     {
  312.         $this->cvvdigits $cvvdigits;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get ranges.
  317.      *
  318.      * @return string
  319.      */
  320.     public function getRanges()
  321.     {
  322.         return $this->ranges;
  323.     }
  324.     /**
  325.      * Get lengths.
  326.      *
  327.      * @return string
  328.      */
  329.     public function getLengths()
  330.     {
  331.         return $this->lengths;
  332.     }
  333.     /**
  334.      * Get luhn.
  335.      *
  336.      * @return int
  337.      */
  338.     public function getLuhn()
  339.     {
  340.         return $this->luhn;
  341.     }
  342.     /**
  343.      * Get cvvDigits.
  344.      *
  345.      * @return int
  346.      */
  347.     public function getCvvdigits()
  348.     {
  349.         return $this->cvvdigits;
  350.     }
  351.     /**
  352.      * __toString.
  353.      */
  354.     public function __toString()
  355.     {
  356.         return (string) $this->id;
  357.     }
  358. }