src/Aviatur/FormBundle/Entity/Subscription.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.  * Subscription.
  7.  *
  8.  * @ORM\Table(name="form_subscription")
  9.  * @ORM\Entity(repositoryClass="Aviatur\FormBundle\Entity\SubscriptionRepository")
  10.  */
  11. class Subscription
  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=255)
  25.      * @Assert\NotNull(message="Debe Diligenciar el campo Nombres")
  26.      */
  27.     private $name;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="surname", type="string", length=255)
  32.      * @Assert\NotNull(message="Debe Diligenciar el campo Apellidos")
  33.      */
  34.     private $surname;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="city", type="string", length=255)
  39.      * @Assert\NotNull(message="Debe Diligenciar el campo Ciudad")
  40.      */
  41.     private $city;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="phone", type="string", length=255)
  46.      * @Assert\NotNull(message="Debe Diligenciar el campo Telefono")
  47.      */
  48.     private $phone;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="mobile", type="string", length=255)
  53.      * @Assert\NotNull(message="Debe Diligenciar el campo Celular")
  54.      */
  55.     private $mobile;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="email", type="string", length=255)
  60.      * @Assert\NotNull(message="Debe Diligenciar el campo Email")
  61.      * @Assert\Email(message = "El mail ingresado no tiene el formato correcto.")
  62.      */
  63.     private $email;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="type", type="string", length=255)
  68.      */
  69.     private $type;
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="destination", type="string", length=255)
  74.      */
  75.     private $destination;
  76.     /**
  77.      * @var \DateTime
  78.      *
  79.      * @ORM\Column(name="date", type="datetime")
  80.      */
  81.     private $date;
  82.     /**
  83.      * @var string
  84.      *
  85.      * @ORM\Column(name="duration", type="string", length=255)
  86.      */
  87.     private $duration;
  88.     /**
  89.      * @var int
  90.      *
  91.      * @ORM\Column(name="adults", type="integer")
  92.      */
  93.     private $adults;
  94.     /**
  95.      * @var int
  96.      *
  97.      * @ORM\Column(name="children", type="integer")
  98.      */
  99.     private $children;
  100.     /**
  101.      * @var string
  102.      *
  103.      * @ORM\Column(name="hotel", type="string", length=255)
  104.      */
  105.     private $hotel;
  106.     /**
  107.      * @var string
  108.      *
  109.      * @ORM\Column(name="food", type="string", length=255)
  110.      */
  111.     private $food;
  112.     /**
  113.      * @var string
  114.      *
  115.      * @ORM\Column(name="additional", type="string", length=255)
  116.      */
  117.     private $additional;
  118.     /**
  119.      * @var string
  120.      *
  121.      * @ORM\Column(name="services", type="array")
  122.      */
  123.     private $services;
  124.     /**
  125.      * @var int
  126.      *
  127.      * @ORM\Column(name="budget", type="integer")
  128.      */
  129.     private $budget;
  130.     /**
  131.      * @var string
  132.      *
  133.      * @ORM\Column(name="observations", type="string", length=600)
  134.      */
  135.     private $observations;
  136.     /**
  137.      * @var \DateTime
  138.      *
  139.      * @ORM\Column(name="creationDate", type="datetime", nullable=false)
  140.      */
  141.     private $creationdate;
  142.     /**
  143.      * @var bool
  144.      *
  145.      * @ORM\Column(name="promo", type="boolean")
  146.      */
  147.     private $promo;
  148.     /**
  149.      * @var bool
  150.      *
  151.      * @ORM\Column(name="privacy", type="boolean")
  152.      */
  153.     private $privacy;
  154.     /**
  155.      * @var bool
  156.      *
  157.      * @ORM\Column(name="contactable", type="boolean")
  158.      */
  159.     private $contactable;
  160.     /**
  161.      * @var \Agency
  162.      *
  163.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="subscription")
  164.      * @ORM\JoinColumns({
  165.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  166.      * })
  167.      */
  168.     private $agency;
  169.     /**
  170.      * Get id.
  171.      *
  172.      * @return int
  173.      */
  174.     public function getId()
  175.     {
  176.         return $this->id;
  177.     }
  178.     /**
  179.      * Set name.
  180.      *
  181.      * @param string $name
  182.      *
  183.      * @return Subscription
  184.      */
  185.     public function setName($name)
  186.     {
  187.         $this->name $name;
  188.         return $this;
  189.     }
  190.     /**
  191.      * Get name.
  192.      *
  193.      * @return string
  194.      */
  195.     public function getName()
  196.     {
  197.         return $this->name;
  198.     }
  199.     /**
  200.      * Set surname.
  201.      *
  202.      * @param string $surname
  203.      *
  204.      * @return Subscription
  205.      */
  206.     public function setSurname($surname)
  207.     {
  208.         $this->surname $surname;
  209.         return $this;
  210.     }
  211.     /**
  212.      * Get surname.
  213.      *
  214.      * @return string
  215.      */
  216.     public function getSurname()
  217.     {
  218.         return $this->surname;
  219.     }
  220.     /**
  221.      * Set city.
  222.      *
  223.      * @param string $city
  224.      *
  225.      * @return Subscription
  226.      */
  227.     public function setCity($city)
  228.     {
  229.         $this->city $city;
  230.         return $this;
  231.     }
  232.     /**
  233.      * Get city.
  234.      *
  235.      * @return string
  236.      */
  237.     public function getCity()
  238.     {
  239.         return $this->city;
  240.     }
  241.     /**
  242.      * Set phone.
  243.      *
  244.      * @param string $phone
  245.      *
  246.      * @return Subscription
  247.      */
  248.     public function setPhone($phone)
  249.     {
  250.         $this->phone $phone;
  251.         return $this;
  252.     }
  253.     /**
  254.      * Get phone.
  255.      *
  256.      * @return string
  257.      */
  258.     public function getPhone()
  259.     {
  260.         return $this->phone;
  261.     }
  262.     /**
  263.      * Set mobile.
  264.      *
  265.      * @param string $mobile
  266.      *
  267.      * @return Subscription
  268.      */
  269.     public function setMobile($mobile)
  270.     {
  271.         $this->mobile $mobile;
  272.         return $this;
  273.     }
  274.     /**
  275.      * Get mobile.
  276.      *
  277.      * @return string
  278.      */
  279.     public function getMobile()
  280.     {
  281.         return $this->mobile;
  282.     }
  283.     /**
  284.      * Set email.
  285.      *
  286.      * @param string $email
  287.      *
  288.      * @return Subscription
  289.      */
  290.     public function setEmail($email)
  291.     {
  292.         $this->email $email;
  293.         return $this;
  294.     }
  295.     /**
  296.      * Get email.
  297.      *
  298.      * @return string
  299.      */
  300.     public function getEmail()
  301.     {
  302.         return $this->email;
  303.     }
  304.     /**
  305.      * Set type.
  306.      *
  307.      * @param string $type
  308.      *
  309.      * @return Subscription
  310.      */
  311.     public function setType($type)
  312.     {
  313.         $this->type $type;
  314.         return $this;
  315.     }
  316.     /**
  317.      * Get type.
  318.      *
  319.      * @return string
  320.      */
  321.     public function getType()
  322.     {
  323.         return $this->type;
  324.     }
  325.     /**
  326.      * Set destination.
  327.      *
  328.      * @param string $destination
  329.      *
  330.      * @return Subscription
  331.      */
  332.     public function setDestination($destination)
  333.     {
  334.         $this->destination $destination;
  335.         return $this;
  336.     }
  337.     /**
  338.      * Get destination.
  339.      *
  340.      * @return string
  341.      */
  342.     public function getDestination()
  343.     {
  344.         return $this->destination;
  345.     }
  346.     /**
  347.      * Set date.
  348.      *
  349.      * @param \DateTime $date
  350.      *
  351.      * @return Subscription
  352.      */
  353.     public function setDate($date)
  354.     {
  355.         $this->date $date;
  356.         return $this;
  357.     }
  358.     /**
  359.      * Get date.
  360.      *
  361.      * @return \DateTime
  362.      */
  363.     public function getDate()
  364.     {
  365.         return $this->date;
  366.     }
  367.     /**
  368.      * Set duration.
  369.      *
  370.      * @param string $duration
  371.      *
  372.      * @return Subscription
  373.      */
  374.     public function setDuration($duration)
  375.     {
  376.         $this->duration $duration;
  377.         return $this;
  378.     }
  379.     /**
  380.      * Get duration.
  381.      *
  382.      * @return string
  383.      */
  384.     public function getDuration()
  385.     {
  386.         return $this->duration;
  387.     }
  388.     /**
  389.      * Set adults.
  390.      *
  391.      * @param string $adults
  392.      *
  393.      * @return Subscription
  394.      */
  395.     public function setAdults($adults)
  396.     {
  397.         $this->adults $adults;
  398.         return $this;
  399.     }
  400.     /**
  401.      * Get adults.
  402.      *
  403.      * @return int
  404.      */
  405.     public function getAdults()
  406.     {
  407.         return $this->adults;
  408.     }
  409.     /**
  410.      * Set children.
  411.      *
  412.      * @param int $children
  413.      *
  414.      * @return Subscription
  415.      */
  416.     public function setChildren($children)
  417.     {
  418.         $this->children $children;
  419.         return $this;
  420.     }
  421.     /**
  422.      * Get children.
  423.      *
  424.      * @return int
  425.      */
  426.     public function getChildren()
  427.     {
  428.         return $this->children;
  429.     }
  430.     /**
  431.      * Set hotel.
  432.      *
  433.      * @param string $hotel
  434.      *
  435.      * @return Subscription
  436.      */
  437.     public function setHotel($hotel)
  438.     {
  439.         $this->hotel $hotel;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get hotel.
  444.      *
  445.      * @return string
  446.      */
  447.     public function getHotel()
  448.     {
  449.         return $this->hotel;
  450.     }
  451.     /**
  452.      * Set food.
  453.      *
  454.      * @param string $food
  455.      *
  456.      * @return Subscription
  457.      */
  458.     public function setFood($food)
  459.     {
  460.         $this->food $food;
  461.         return $this;
  462.     }
  463.     /**
  464.      * Get food.
  465.      *
  466.      * @return string
  467.      */
  468.     public function getFood()
  469.     {
  470.         return $this->food;
  471.     }
  472.     /**
  473.      * Set additional.
  474.      *
  475.      * @param string $additional
  476.      *
  477.      * @return Subscription
  478.      */
  479.     public function setAdditional($additional)
  480.     {
  481.         $this->additional $additional;
  482.         return $this;
  483.     }
  484.     /**
  485.      * Get additional.
  486.      *
  487.      * @return string
  488.      */
  489.     public function getAdditional()
  490.     {
  491.         return $this->additional;
  492.     }
  493.     /**
  494.      * Set services.
  495.      *
  496.      * @param string $services
  497.      *
  498.      * @return Subscription
  499.      */
  500.     public function setServices($services)
  501.     {
  502.         $this->services $services;
  503.         return $this;
  504.     }
  505.     /**
  506.      * Get services.
  507.      *
  508.      * @return string
  509.      */
  510.     public function getServices()
  511.     {
  512.         return $this->services;
  513.     }
  514.     /**
  515.      * Set budget.
  516.      *
  517.      * @param int $budget
  518.      *
  519.      * @return Subscription
  520.      */
  521.     public function setBudget($budget)
  522.     {
  523.         $this->budget $budget;
  524.         return $this;
  525.     }
  526.     /**
  527.      * Get budget.
  528.      *
  529.      * @return int
  530.      */
  531.     public function getBudget()
  532.     {
  533.         return $this->budget;
  534.     }
  535.     /**
  536.      * Set observations.
  537.      *
  538.      * @param string $observations
  539.      *
  540.      * @return Subscription
  541.      */
  542.     public function setObservations($observations)
  543.     {
  544.         $this->observations $observations;
  545.         return $this;
  546.     }
  547.     /**
  548.      * Get observations.
  549.      *
  550.      * @return string
  551.      */
  552.     public function getObservations()
  553.     {
  554.         return $this->observations;
  555.     }
  556.     /**
  557.      * Set creationdate.
  558.      *
  559.      * @param \DateTime $creationdate
  560.      *
  561.      * @return Subscription
  562.      */
  563.     public function setCreationdate($creationdate)
  564.     {
  565.         $this->creationdate $creationdate;
  566.         return $this;
  567.     }
  568.     /**
  569.      * Get creationdate.
  570.      *
  571.      * @return \DateTime
  572.      */
  573.     public function getCreationdate()
  574.     {
  575.         return $this->creationdate;
  576.     }
  577.     /**
  578.      * Set promo.
  579.      *
  580.      * @param bool $promo
  581.      *
  582.      * @return Subscription
  583.      */
  584.     public function setPromo($promo)
  585.     {
  586.         $this->promo $promo;
  587.         return $this;
  588.     }
  589.     /**
  590.      * Get promo.
  591.      *
  592.      * @return bool
  593.      */
  594.     public function getPromo()
  595.     {
  596.         return $this->promo;
  597.     }
  598.     /**
  599.      * Set privacy.
  600.      *
  601.      * @param bool $privacy
  602.      *
  603.      * @return Subscription
  604.      */
  605.     public function setPrivacy($privacy)
  606.     {
  607.         $this->privacy $privacy;
  608.         return $this;
  609.     }
  610.     /**
  611.      * Get privacy.
  612.      *
  613.      * @return bool
  614.      */
  615.     public function getPrivacy()
  616.     {
  617.         return $this->privacy;
  618.     }
  619.     /**
  620.      * Set contactable.
  621.      *
  622.      * @param bool $contactable
  623.      *
  624.      * @return Subscription
  625.      */
  626.     public function setContactable($contactable)
  627.     {
  628.         $this->contactable $contactable;
  629.         return $this;
  630.     }
  631.     /**
  632.      * Get contactable.
  633.      *
  634.      * @return bool
  635.      */
  636.     public function getContactable()
  637.     {
  638.         return $this->contactable;
  639.     }
  640.     /**
  641.      * Set agency.
  642.      *
  643.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  644.      *
  645.      * @return Subscription
  646.      */
  647.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  648.     {
  649.         $this->agency $agency;
  650.         return $this;
  651.     }
  652.     /**
  653.      * Get agency.
  654.      *
  655.      * @return \Aviatur\AgencyBundle\Entity\Agency
  656.      */
  657.     public function getAgency()
  658.     {
  659.         return $this->agency;
  660.     }
  661. }