<?php
namespace Aviatur\FormBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Subscription.
*
* @ORM\Table(name="form_subscription")
* @ORM\Entity(repositoryClass="Aviatur\FormBundle\Entity\SubscriptionRepository")
*/
class Subscription
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Nombres")
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="surname", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Apellidos")
*/
private $surname;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Ciudad")
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Telefono")
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="mobile", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Celular")
*/
private $mobile;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Email")
* @Assert\Email(message = "El mail ingresado no tiene el formato correcto.")
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255)
*/
private $type;
/**
* @var string
*
* @ORM\Column(name="destination", type="string", length=255)
*/
private $destination;
/**
* @var \DateTime
*
* @ORM\Column(name="date", type="datetime")
*/
private $date;
/**
* @var string
*
* @ORM\Column(name="duration", type="string", length=255)
*/
private $duration;
/**
* @var int
*
* @ORM\Column(name="adults", type="integer")
*/
private $adults;
/**
* @var int
*
* @ORM\Column(name="children", type="integer")
*/
private $children;
/**
* @var string
*
* @ORM\Column(name="hotel", type="string", length=255)
*/
private $hotel;
/**
* @var string
*
* @ORM\Column(name="food", type="string", length=255)
*/
private $food;
/**
* @var string
*
* @ORM\Column(name="additional", type="string", length=255)
*/
private $additional;
/**
* @var string
*
* @ORM\Column(name="services", type="array")
*/
private $services;
/**
* @var int
*
* @ORM\Column(name="budget", type="integer")
*/
private $budget;
/**
* @var string
*
* @ORM\Column(name="observations", type="string", length=600)
*/
private $observations;
/**
* @var \DateTime
*
* @ORM\Column(name="creationDate", type="datetime", nullable=false)
*/
private $creationdate;
/**
* @var bool
*
* @ORM\Column(name="promo", type="boolean")
*/
private $promo;
/**
* @var bool
*
* @ORM\Column(name="privacy", type="boolean")
*/
private $privacy;
/**
* @var bool
*
* @ORM\Column(name="contactable", type="boolean")
*/
private $contactable;
/**
* @var \Agency
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="subscription")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private $agency;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name.
*
* @param string $name
*
* @return Subscription
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set surname.
*
* @param string $surname
*
* @return Subscription
*/
public function setSurname($surname)
{
$this->surname = $surname;
return $this;
}
/**
* Get surname.
*
* @return string
*/
public function getSurname()
{
return $this->surname;
}
/**
* Set city.
*
* @param string $city
*
* @return Subscription
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city.
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set phone.
*
* @param string $phone
*
* @return Subscription
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone.
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set mobile.
*
* @param string $mobile
*
* @return Subscription
*/
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Get mobile.
*
* @return string
*/
public function getMobile()
{
return $this->mobile;
}
/**
* Set email.
*
* @param string $email
*
* @return Subscription
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set type.
*
* @param string $type
*
* @return Subscription
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set destination.
*
* @param string $destination
*
* @return Subscription
*/
public function setDestination($destination)
{
$this->destination = $destination;
return $this;
}
/**
* Get destination.
*
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* Set date.
*
* @param \DateTime $date
*
* @return Subscription
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Get date.
*
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* Set duration.
*
* @param string $duration
*
* @return Subscription
*/
public function setDuration($duration)
{
$this->duration = $duration;
return $this;
}
/**
* Get duration.
*
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Set adults.
*
* @param string $adults
*
* @return Subscription
*/
public function setAdults($adults)
{
$this->adults = $adults;
return $this;
}
/**
* Get adults.
*
* @return int
*/
public function getAdults()
{
return $this->adults;
}
/**
* Set children.
*
* @param int $children
*
* @return Subscription
*/
public function setChildren($children)
{
$this->children = $children;
return $this;
}
/**
* Get children.
*
* @return int
*/
public function getChildren()
{
return $this->children;
}
/**
* Set hotel.
*
* @param string $hotel
*
* @return Subscription
*/
public function setHotel($hotel)
{
$this->hotel = $hotel;
return $this;
}
/**
* Get hotel.
*
* @return string
*/
public function getHotel()
{
return $this->hotel;
}
/**
* Set food.
*
* @param string $food
*
* @return Subscription
*/
public function setFood($food)
{
$this->food = $food;
return $this;
}
/**
* Get food.
*
* @return string
*/
public function getFood()
{
return $this->food;
}
/**
* Set additional.
*
* @param string $additional
*
* @return Subscription
*/
public function setAdditional($additional)
{
$this->additional = $additional;
return $this;
}
/**
* Get additional.
*
* @return string
*/
public function getAdditional()
{
return $this->additional;
}
/**
* Set services.
*
* @param string $services
*
* @return Subscription
*/
public function setServices($services)
{
$this->services = $services;
return $this;
}
/**
* Get services.
*
* @return string
*/
public function getServices()
{
return $this->services;
}
/**
* Set budget.
*
* @param int $budget
*
* @return Subscription
*/
public function setBudget($budget)
{
$this->budget = $budget;
return $this;
}
/**
* Get budget.
*
* @return int
*/
public function getBudget()
{
return $this->budget;
}
/**
* Set observations.
*
* @param string $observations
*
* @return Subscription
*/
public function setObservations($observations)
{
$this->observations = $observations;
return $this;
}
/**
* Get observations.
*
* @return string
*/
public function getObservations()
{
return $this->observations;
}
/**
* Set creationdate.
*
* @param \DateTime $creationdate
*
* @return Subscription
*/
public function setCreationdate($creationdate)
{
$this->creationdate = $creationdate;
return $this;
}
/**
* Get creationdate.
*
* @return \DateTime
*/
public function getCreationdate()
{
return $this->creationdate;
}
/**
* Set promo.
*
* @param bool $promo
*
* @return Subscription
*/
public function setPromo($promo)
{
$this->promo = $promo;
return $this;
}
/**
* Get promo.
*
* @return bool
*/
public function getPromo()
{
return $this->promo;
}
/**
* Set privacy.
*
* @param bool $privacy
*
* @return Subscription
*/
public function setPrivacy($privacy)
{
$this->privacy = $privacy;
return $this;
}
/**
* Get privacy.
*
* @return bool
*/
public function getPrivacy()
{
return $this->privacy;
}
/**
* Set contactable.
*
* @param bool $contactable
*
* @return Subscription
*/
public function setContactable($contactable)
{
$this->contactable = $contactable;
return $this;
}
/**
* Get contactable.
*
* @return bool
*/
public function getContactable()
{
return $this->contactable;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return Subscription
*/
public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency = null)
{
$this->agency = $agency;
return $this;
}
/**
* Get agency.
*
* @return \Aviatur\AgencyBundle\Entity\Agency
*/
public function getAgency()
{
return $this->agency;
}
}