src/Aviatur/FormBundle/Entity/Cruiser.php line 14

Open in your IDE?
  1. <?php
  2. namespace Aviatur\FormBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * Newsletter.
  7.  *
  8.  * @ORM\Table(name="cruiser_form")
  9.  * @ORM\Entity(repositoryClass="Aviatur\FormBundle\Entity\CruiserRepository")
  10.  */
  11. class Cruiser
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="firstname", type="string", length=64)
  25.      * @Assert\NotNull(message="Debe Diligenciar el campo Nombres")
  26.      */
  27.     private $firstname;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="lastname", type="string", length=64)
  32.      * @Assert\NotNull(message="Debe Diligenciar el campo Apellidos")
  33.      */
  34.     private $lastname;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="phone", type="string", length=255)
  39.      * @Assert\NotNull(message="Debe Diligenciar el campo Telefono")
  40.      */
  41.     protected $phone;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="email", type="string", length=255)
  46.      * @Assert\NotNull(message="Debe Diligenciar el campo Email")
  47.      * @Assert\Email(message = "El mail ingresado no tiene el formato correcto.")
  48.      */
  49.     protected $email;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="destination", type="string", length=255)
  54.      * @Assert\NotNull(message="Debe Diligenciar el campo Destino")
  55.      */
  56.     protected $destination;
  57.     /**
  58.      * @var int
  59.      *
  60.      * @ORM\Column(name="adults", type="integer")
  61.      * @Assert\NotNull(message="Debe indicar el número de adultos")
  62.      */
  63.     private $adults;
  64.     /**
  65.      * @var int
  66.      *
  67.      * @ORM\Column(name="children", type="integer")
  68.      * @Assert\NotNull(message="Debe indicar el número de niños")
  69.      */
  70.     private $children;
  71.     /**
  72.      * @var int
  73.      *
  74.      * @ORM\Column(name="infants", type="integer")
  75.      * @Assert\NotNull(message="Debe indicar el número de infantes")
  76.      */
  77.     private $infants;
  78.     /**
  79.      * @var \Date
  80.      *
  81.      * @ORM\Column(name="travelDate", type="date", nullable=false)
  82.      */
  83.     private $traveldate;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="duration", type="string", length=64)
  88.      */
  89.     private $duration;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="comments", type="string", length=950)
  94.      */
  95.     private $comments;
  96.     /**
  97.      * @var \Agency
  98.      *
  99.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="cruiser")
  100.      * @ORM\JoinColumns({
  101.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  102.      * })
  103.      */
  104.     private $agency;
  105.     /**
  106.      * @var \DateTime
  107.      *
  108.      * @ORM\Column(name="requestDate", type="datetime", nullable=false)
  109.      */
  110.     private $requestdate;
  111.     /**
  112.      * Get id.
  113.      *
  114.      * @return int
  115.      */
  116.     public function getId()
  117.     {
  118.         return $this->id;
  119.     }
  120.     /**
  121.      * Set firstname.
  122.      *
  123.      * @param string $firstname
  124.      *
  125.      * @return Cruiser
  126.      */
  127.     public function setFirstname($firstname)
  128.     {
  129.         $this->firstname $firstname;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get firstname.
  134.      *
  135.      * @return string
  136.      */
  137.     public function getFirstname()
  138.     {
  139.         return $this->firstname;
  140.     }
  141.     /**
  142.      * Set lastname.
  143.      *
  144.      * @param string $lastname
  145.      *
  146.      * @return Cruiser
  147.      */
  148.     public function setLastname($lastname)
  149.     {
  150.         $this->lastname $lastname;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get lastname.
  155.      *
  156.      * @return string
  157.      */
  158.     public function getLastname()
  159.     {
  160.         return $this->lastname;
  161.     }
  162.     /**
  163.      * Set phone.
  164.      *
  165.      * @param string $phone
  166.      *
  167.      * @return Cruiser
  168.      */
  169.     public function setPhone($phone)
  170.     {
  171.         $this->phone $phone;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get phone.
  176.      *
  177.      * @return string
  178.      */
  179.     public function getPhone()
  180.     {
  181.         return $this->phone;
  182.     }
  183.     /**
  184.      * Set email.
  185.      *
  186.      * @param string $email
  187.      *
  188.      * @return Cruiser
  189.      */
  190.     public function setEmail($email)
  191.     {
  192.         $this->email $email;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get email.
  197.      *
  198.      * @return string
  199.      */
  200.     public function getEmail()
  201.     {
  202.         return $this->email;
  203.     }
  204.     /**
  205.      * Set destination.
  206.      *
  207.      * @param string $destination
  208.      *
  209.      * @return Cruiser
  210.      */
  211.     public function setDestination($destination)
  212.     {
  213.         $this->destination $destination;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get destination.
  218.      *
  219.      * @return string
  220.      */
  221.     public function getDestination()
  222.     {
  223.         return $this->destination;
  224.     }
  225.     /**
  226.      * Set adults.
  227.      *
  228.      * @param int $adults
  229.      *
  230.      * @return Cruiser
  231.      */
  232.     public function setAdults($adults)
  233.     {
  234.         $this->adults $adults;
  235.         return $this;
  236.     }
  237.     /**
  238.      * Get adults.
  239.      *
  240.      * @return int
  241.      */
  242.     public function getAdults()
  243.     {
  244.         return $this->adults;
  245.     }
  246.     /**
  247.      * Set children.
  248.      *
  249.      * @param int $children
  250.      *
  251.      * @return Cruiser
  252.      */
  253.     public function setChildren($children)
  254.     {
  255.         $this->children $children;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get children.
  260.      *
  261.      * @return int
  262.      */
  263.     public function getChildren()
  264.     {
  265.         return $this->children;
  266.     }
  267.     /**
  268.      * Set infants.
  269.      *
  270.      * @param int $infants
  271.      *
  272.      * @return Cruiser
  273.      */
  274.     public function setInfants($infants)
  275.     {
  276.         $this->infants $infants;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Get infants.
  281.      *
  282.      * @return int
  283.      */
  284.     public function getInfants()
  285.     {
  286.         return $this->infants;
  287.     }
  288.     /**
  289.      * Set traveldate.
  290.      *
  291.      * @param \Date $traveldate
  292.      *
  293.      * @return Cruiser
  294.      */
  295.     public function setTraveldate($traveldate)
  296.     {
  297.         $this->traveldate $traveldate;
  298.         return $this;
  299.     }
  300.     /**
  301.      * Get traveldate.
  302.      *
  303.      * @return \Date
  304.      */
  305.     public function getTraveldate()
  306.     {
  307.         return $this->traveldate;
  308.     }
  309.     /**
  310.      * Set comments.
  311.      *
  312.      * @param string $comments
  313.      *
  314.      * @return Cruiser
  315.      */
  316.     public function setComments($comments)
  317.     {
  318.         $this->comments $comments;
  319.         return $this;
  320.     }
  321.     /**
  322.      * Get comments.
  323.      *
  324.      * @return string
  325.      */
  326.     public function getComments()
  327.     {
  328.         return $this->comments;
  329.     }
  330.     /**
  331.      * Set duration.
  332.      *
  333.      * @param string $duration
  334.      *
  335.      * @return Cruiser
  336.      */
  337.     public function setDuration($duration)
  338.     {
  339.         $this->duration $duration;
  340.         return $this;
  341.     }
  342.     /**
  343.      * Get duration.
  344.      *
  345.      * @return string
  346.      */
  347.     public function getDuration()
  348.     {
  349.         return $this->duration;
  350.     }
  351.     /**
  352.      * Set agency.
  353.      *
  354.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  355.      *
  356.      * @return Cruiser
  357.      */
  358.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  359.     {
  360.         $this->agency $agency;
  361.         return $this;
  362.     }
  363.     /**
  364.      * Get agency.
  365.      *
  366.      * @return \Aviatur\AgencyBundle\Entity\Agency
  367.      */
  368.     public function getAgency()
  369.     {
  370.         return $this->agency;
  371.     }
  372.     /**
  373.      * Set requestdate.
  374.      *
  375.      * @param \DateTime $requestdate
  376.      *
  377.      * @return Cruiser
  378.      */
  379.     public function setRequestdate($requestdate)
  380.     {
  381.         $this->requestdate $requestdate;
  382.         return $this;
  383.     }
  384.     /**
  385.      * Get requestdate.
  386.      *
  387.      * @return \DateTime
  388.      */
  389.     public function getRequestdate()
  390.     {
  391.         return $this->requestdate;
  392.     }
  393. }