<?php
namespace Aviatur\FormBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Newsletter.
*
* @ORM\Table(name="form_services")
* @ORM\Entity(repositoryClass="Aviatur\FormBundle\Entity\ServiceRepository")
*/
class Service
{
/**
* @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=64)
* @Assert\NotNull(message="Debe Diligenciar el campo Nombre/Agencia")
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo País")
*/
private $country;
/**
* @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="contactName", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Nombre del contacto")
*/
private $contactname;
/**
* @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="destination", type="string", length=255)
* @Assert\NotNull(message="Debe Diligenciar el campo Destino")
*/
private $destination;
/**
* @var \Date
*
* @ORM\Column(name="dateIn", type="date", nullable=false)
*/
private $datein;
/**
* @var \Date
*
* @ORM\Column(name="dateout", type="date", nullable=false)
*/
private $dateout;
/**
* @var int
*
* @ORM\Column(name="adults", type="integer")
* @Assert\NotNull(message="Debe Diligenciar el campo Adultos")
*/
private $adults;
/**
* @var int
*
* @ORM\Column(name="children", type="integer")
* @Assert\NotNull(message="Debe Diligenciar el campo Niños")
*/
private $children;
/**
* @var string
*
* @ORM\Column(name="service", type="string", length=255)
*/
private $service;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=950)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255)
*/
private $type;
/**
* @var \Agency
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="service")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private $agency;
/**
* @var \DateTime
*
* @ORM\Column(name="requestDate", type="datetime", nullable=false)
*/
private $requestdate;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name.
*
* @param string $name
*
* @return Service
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set country.
*
* @param string $country
*
* @return Service
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country.
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Set phone.
*
* @param string $phone
*
* @return Service
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone.
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set contactname.
*
* @param string $contactname
*
* @return Service
*/
public function setContactname($contactname)
{
$this->contactname = $contactname;
return $this;
}
/**
* Get contactname.
*
* @return string
*/
public function getContactname()
{
return $this->contactname;
}
/**
* Set email.
*
* @param string $email
*
* @return Service
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set destination.
*
* @param string $destination
*
* @return Service
*/
public function setDestination($destination)
{
$this->destination = $destination;
return $this;
}
/**
* Get destination.
*
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* Set datein.
*
* @param \Date $datein
*
* @return Service
*/
public function setDatein($datein)
{
$this->datein = $datein;
return $this;
}
/**
* Get datein.
*
* @return \Date
*/
public function getDatein()
{
return $this->datein;
}
/**
* Set dateout.
*
* @param \Date $dateout
*
* @return Service
*/
public function setDateout($dateout)
{
$this->dateout = $dateout;
return $this;
}
/**
* Get dateout.
*
* @return \Date
*/
public function getDateout()
{
return $this->dateout;
}
/**
* Set adults.
*
* @param string $adults
*
* @return Service
*/
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 Service
*/
public function setChildren($children)
{
$this->children = $children;
return $this;
}
/**
* Get children.
*
* @return int
*/
public function getChildren()
{
return $this->children;
}
/**
* Set service.
*
* @param string $service
*
* @return Service
*/
public function setService($service)
{
$this->service = $service;
return $this;
}
/**
* Get service.
*
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Set description.
*
* @param string $description
*
* @return Service
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set type.
*
* @param string $type
*
* @return Service
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return Service
*/
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;
}
/**
* Set requestdate.
*
* @param \DateTime $requestdate
*
* @return service
*/
public function setRequestdate($requestdate)
{
$this->requestdate = $requestdate;
return $this;
}
/**
* Get requestdate.
*
* @return \DateTime
*/
public function getRequestdate()
{
return $this->requestdate;
}
}