<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Card.
*
* @ORM\Table(name="card")
* @ORM\Entity(repositoryClass="CardRepository")
*/
class Card
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="paymentGatewayCode", type="string", length=10)
*/
private $paymentgatewaycode;
/**
* @var string
*
* @ORM\Column(name="warrantyCode", type="string", length=10)
*/
private $warrantycode;
/**
* @var string
*
* @ORM\Column(name="emissionCode", type="string", length=10)
*/
private $emissioncode;
/**
* @var string
*
* @ORM\Column(name="cybersourceCode", type="string", length=10)
*/
private $cybersourcecode;
/**
* @var string
*
* @ORM\Column(name="worldpayCode", type="string", length=10)
*/
private $worldpaycode;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=45)
*/
private $description;
/**
* @var int
*
* @ORM\Column(name="isActive", type="integer", length=1)
*/
private $isactive;
/**
* @var string
*
* @ORM\Column(name="ranges", type="text", nullable=true)
*/
private $ranges = null;
/**
* @var string
*
* @ORM\Column(name="lengths", type="text", nullable=true)
*/
private $lengths = null;
/**
* @var int
*
* @ORM\Column(name="luhn", type="integer", length=1)
*/
private $luhn = 0;
/**
* @var int
*
* @ORM\Column(name="cvvDigits", type="integer", length=4)
*/
private $cvvdigits = 3;
/**
* @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\AirlineValidation", mappedBy="card", cascade={"all"})
*/
private $airlineValidation;
/**
* Constructor.
*/
public function __construct()
{
$this->airlineValidation = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set paymentgatewaycode.
*
* @param string $paymentgatewaycode
*
* @return Card
*/
public function setPaymentgatewaycode($paymentgatewaycode)
{
$this->paymentgatewaycode = $paymentgatewaycode;
return $this;
}
/**
* Get paymentgatewaycode.
*
* @return string
*/
public function getPaymentgatewaycode()
{
return $this->paymentgatewaycode;
}
/**
* Set warrantycode.
*
* @param string $warrantycode
*
* @return Card
*/
public function setWarrantycode($warrantycode)
{
$this->warrantycode = $warrantycode;
return $this;
}
/**
* Get warrantycode.
*
* @return string
*/
public function getWarrantycode()
{
return $this->warrantycode;
}
/**
* Set emissioncode.
*
* @param string $emissioncode
*
* @return Card
*/
public function setEmissioncode($emissioncode)
{
$this->emissioncode = $emissioncode;
return $this;
}
/**
* Get emissioncode.
*
* @return string
*/
public function getEmissioncode()
{
return $this->emissioncode;
}
/**
* Set cybersourcecode.
*
* @param string $cybersourcecode
*
* @return Card
*/
public function setCybersourcecode($cybersourcecode)
{
$this->cybersourcecode = $cybersourcecode;
return $this;
}
/**
* Get cybersourcecode.
*
* @return string
*/
public function getCybersourcecode()
{
return $this->cybersourcecode;
}
/**
* Set description.
*
* @param string $description
*
* @return Card
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set worldpaycode.
*
* @param string $worldpaycode
*
* @return Card
*/
public function setWorldpaycode($worldpaycode)
{
$this->worldpaycode = $worldpaycode;
return $this;
}
/**
* Get worldpaycode.
*
* @return string
*/
public function getWorldpaycode()
{
return $this->worldpaycode;
}
/**
* Add airlineValidation.
*
* @return Agency
*/
public function addAirlineValidation(\Aviatur\FlightBundle\Entity\AirlineValidation $airlineValidation)
{
$this->airlineValidation[] = $airlineValidation;
return $this;
}
/**
* Remove airlineValidation.
*/
public function removeChurning(\Aviatur\FlightBundle\Entity\AirlineValidation $airlineValidation)
{
$this->airlineValidation->removeElement($airlineValidation);
}
/**
* Get airlineValidation.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getChurning()
{
return $this->airlineValidation;
}
/**
* Get isactive.
*
* @return int
*/
public function getisactive()
{
return $this->isactive;
}
/**
* Set ranges.
*
* @param string $ranges
*
* @return Card
*/
public function setRanges($ranges)
{
$this->ranges = $ranges;
return $this;
}
/**
* Set lengths.
*
* @param string $lengths
*
* @return Card
*/
public function setLengths($lengths)
{
$this->lengths = $lengths;
return $this;
}
/**
* Set luhn.
*
* @param int $luhn
*
* @return Card
*/
public function setLuhn($luhn)
{
$this->luhn = $luhn;
return $this;
}
/**
* Set cvvDigits.
*
* @param int $cvvdigits
*
* @return Card
*/
public function setCvvdigits($cvvdigits)
{
$this->cvvdigits = $cvvdigits;
return $this;
}
/**
* Get ranges.
*
* @return string
*/
public function getRanges()
{
return $this->ranges;
}
/**
* Get lengths.
*
* @return string
*/
public function getLengths()
{
return $this->lengths;
}
/**
* Get luhn.
*
* @return int
*/
public function getLuhn()
{
return $this->luhn;
}
/**
* Get cvvDigits.
*
* @return int
*/
public function getCvvdigits()
{
return $this->cvvdigits;
}
/**
* __toString.
*/
public function __toString()
{
return (string) $this->id;
}
}