src/Aviatur/FormBundle/Entity/Service.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="form_services")
  9.  * @ORM\Entity(repositoryClass="Aviatur\FormBundle\Entity\ServiceRepository")
  10.  */
  11. class Service
  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="name", type="string", length=64)
  25.      * @Assert\NotNull(message="Debe Diligenciar el campo Nombre/Agencia")
  26.      */
  27.     private $name;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="country", type="string", length=255)
  32.      * @Assert\NotNull(message="Debe Diligenciar el campo País")
  33.      */
  34.     private $country;
  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.     private $phone;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="contactName", type="string", length=255)
  46.      * @Assert\NotNull(message="Debe Diligenciar el campo Nombre del contacto")
  47.      */
  48.     private $contactname;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="email", type="string", length=255)
  53.      * @Assert\NotNull(message="Debe Diligenciar el campo Email")
  54.      * @Assert\Email(message = "El mail ingresado no tiene el formato correcto.")
  55.      */
  56.     private $email;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="destination", type="string", length=255)
  61.      * @Assert\NotNull(message="Debe Diligenciar el campo Destino")
  62.      */
  63.     private $destination;
  64.     /**
  65.      * @var \Date
  66.      *
  67.      * @ORM\Column(name="dateIn", type="date", nullable=false)
  68.      */
  69.     private $datein;
  70.     /**
  71.      * @var \Date
  72.      *
  73.      * @ORM\Column(name="dateout", type="date", nullable=false)
  74.      */
  75.     private $dateout;
  76.     /**
  77.      * @var int
  78.      *
  79.      * @ORM\Column(name="adults", type="integer")
  80.      * @Assert\NotNull(message="Debe Diligenciar el campo Adultos")
  81.      */
  82.     private $adults;
  83.     /**
  84.      * @var int
  85.      *
  86.      * @ORM\Column(name="children", type="integer")
  87.      * @Assert\NotNull(message="Debe Diligenciar el campo Niños")
  88.      */
  89.     private $children;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="service", type="string", length=255)
  94.      */
  95.     private $service;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(name="description", type="string", length=950)
  100.      */
  101.     private $description;
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="type", type="string", length=255)
  106.      */
  107.     private $type;
  108.     /**
  109.      * @var \Agency
  110.      *
  111.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="service")
  112.      * @ORM\JoinColumns({
  113.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  114.      * })
  115.      */
  116.     private $agency;
  117.     /**
  118.      * @var \DateTime
  119.      *
  120.      * @ORM\Column(name="requestDate", type="datetime", nullable=false)
  121.      */
  122.     private $requestdate;
  123.     /**
  124.      * Get id.
  125.      *
  126.      * @return int
  127.      */
  128.     public function getId()
  129.     {
  130.         return $this->id;
  131.     }
  132.     /**
  133.      * Set name.
  134.      *
  135.      * @param string $name
  136.      *
  137.      * @return Service
  138.      */
  139.     public function setName($name)
  140.     {
  141.         $this->name $name;
  142.         return $this;
  143.     }
  144.     /**
  145.      * Get name.
  146.      *
  147.      * @return string
  148.      */
  149.     public function getName()
  150.     {
  151.         return $this->name;
  152.     }
  153.     /**
  154.      * Set country.
  155.      *
  156.      * @param string $country
  157.      *
  158.      * @return Service
  159.      */
  160.     public function setCountry($country)
  161.     {
  162.         $this->country $country;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get country.
  167.      *
  168.      * @return string
  169.      */
  170.     public function getCountry()
  171.     {
  172.         return $this->country;
  173.     }
  174.     /**
  175.      * Set phone.
  176.      *
  177.      * @param string $phone
  178.      *
  179.      * @return Service
  180.      */
  181.     public function setPhone($phone)
  182.     {
  183.         $this->phone $phone;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get phone.
  188.      *
  189.      * @return string
  190.      */
  191.     public function getPhone()
  192.     {
  193.         return $this->phone;
  194.     }
  195.     /**
  196.      * Set contactname.
  197.      *
  198.      * @param string $contactname
  199.      *
  200.      * @return Service
  201.      */
  202.     public function setContactname($contactname)
  203.     {
  204.         $this->contactname $contactname;
  205.         return $this;
  206.     }
  207.     /**
  208.      * Get contactname.
  209.      *
  210.      * @return string
  211.      */
  212.     public function getContactname()
  213.     {
  214.         return $this->contactname;
  215.     }
  216.     /**
  217.      * Set email.
  218.      *
  219.      * @param string $email
  220.      *
  221.      * @return Service
  222.      */
  223.     public function setEmail($email)
  224.     {
  225.         $this->email $email;
  226.         return $this;
  227.     }
  228.     /**
  229.      * Get email.
  230.      *
  231.      * @return string
  232.      */
  233.     public function getEmail()
  234.     {
  235.         return $this->email;
  236.     }
  237.     /**
  238.      * Set destination.
  239.      *
  240.      * @param string $destination
  241.      *
  242.      * @return Service
  243.      */
  244.     public function setDestination($destination)
  245.     {
  246.         $this->destination $destination;
  247.         return $this;
  248.     }
  249.     /**
  250.      * Get destination.
  251.      *
  252.      * @return string
  253.      */
  254.     public function getDestination()
  255.     {
  256.         return $this->destination;
  257.     }
  258.     /**
  259.      * Set datein.
  260.      *
  261.      * @param \Date $datein
  262.      *
  263.      * @return Service
  264.      */
  265.     public function setDatein($datein)
  266.     {
  267.         $this->datein $datein;
  268.         return $this;
  269.     }
  270.     /**
  271.      * Get datein.
  272.      *
  273.      * @return \Date
  274.      */
  275.     public function getDatein()
  276.     {
  277.         return $this->datein;
  278.     }
  279.     /**
  280.      * Set dateout.
  281.      *
  282.      * @param \Date $dateout
  283.      *
  284.      * @return Service
  285.      */
  286.     public function setDateout($dateout)
  287.     {
  288.         $this->dateout $dateout;
  289.         return $this;
  290.     }
  291.     /**
  292.      * Get dateout.
  293.      *
  294.      * @return \Date
  295.      */
  296.     public function getDateout()
  297.     {
  298.         return $this->dateout;
  299.     }
  300.     /**
  301.      * Set adults.
  302.      *
  303.      * @param string $adults
  304.      *
  305.      * @return Service
  306.      */
  307.     public function setAdults($adults)
  308.     {
  309.         $this->adults $adults;
  310.         return $this;
  311.     }
  312.     /**
  313.      * Get adults.
  314.      *
  315.      * @return int
  316.      */
  317.     public function getAdults()
  318.     {
  319.         return $this->adults;
  320.     }
  321.     /**
  322.      * Set children.
  323.      *
  324.      * @param int $children
  325.      *
  326.      * @return Service
  327.      */
  328.     public function setChildren($children)
  329.     {
  330.         $this->children $children;
  331.         return $this;
  332.     }
  333.     /**
  334.      * Get children.
  335.      *
  336.      * @return int
  337.      */
  338.     public function getChildren()
  339.     {
  340.         return $this->children;
  341.     }
  342.     /**
  343.      * Set service.
  344.      *
  345.      * @param string $service
  346.      *
  347.      * @return Service
  348.      */
  349.     public function setService($service)
  350.     {
  351.         $this->service $service;
  352.         return $this;
  353.     }
  354.     /**
  355.      * Get service.
  356.      *
  357.      * @return string
  358.      */
  359.     public function getService()
  360.     {
  361.         return $this->service;
  362.     }
  363.     /**
  364.      * Set description.
  365.      *
  366.      * @param string $description
  367.      *
  368.      * @return Service
  369.      */
  370.     public function setDescription($description)
  371.     {
  372.         $this->description $description;
  373.         return $this;
  374.     }
  375.     /**
  376.      * Get description.
  377.      *
  378.      * @return string
  379.      */
  380.     public function getDescription()
  381.     {
  382.         return $this->description;
  383.     }
  384.     /**
  385.      * Set type.
  386.      *
  387.      * @param string $type
  388.      *
  389.      * @return Service
  390.      */
  391.     public function setType($type)
  392.     {
  393.         $this->type $type;
  394.         return $this;
  395.     }
  396.     /**
  397.      * Get type.
  398.      *
  399.      * @return string
  400.      */
  401.     public function getType()
  402.     {
  403.         return $this->type;
  404.     }
  405.     /**
  406.      * Set agency.
  407.      *
  408.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  409.      *
  410.      * @return Service
  411.      */
  412.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  413.     {
  414.         $this->agency $agency;
  415.         return $this;
  416.     }
  417.     /**
  418.      * Get agency.
  419.      *
  420.      * @return \Aviatur\AgencyBundle\Entity\Agency
  421.      */
  422.     public function getAgency()
  423.     {
  424.         return $this->agency;
  425.     }
  426.     /**
  427.      * Set requestdate.
  428.      *
  429.      * @param \DateTime $requestdate
  430.      *
  431.      * @return service
  432.      */
  433.     public function setRequestdate($requestdate)
  434.     {
  435.         $this->requestdate $requestdate;
  436.         return $this;
  437.     }
  438.     /**
  439.      * Get requestdate.
  440.      *
  441.      * @return \DateTime
  442.      */
  443.     public function getRequestdate()
  444.     {
  445.         return $this->requestdate;
  446.     }
  447. }