<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Alerts.
*
* @ORM\Table(name="alerts")
* @ORM\Entity(repositoryClass="AlertsRepository")
*/
class Alerts
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=false)
*/
public $email;
/**
* @var string
*
* @ORM\Column(name="url", type="string", length=255, nullable=false)
*/
public $url;
/**
* @ORM\Column(name="price", type="decimal", scale=2)
*/
public $price;
/**
* @var bool
*
* @ORM\Column(name = "updatePrice", type = "boolean")
*/
private $updatePrice;
/**
* @ORM\Column(name="trip", type="string", length=150)
*/
public $trip;
/**
* @ORM\Column(name="departure", type="string", length=150 , nullable=true)
*/
public $departure;
/**
* @ORM\Column(name="round", type="string", length=150 , nullable=true)
*/
public $round;
/**
* @var int
*
* @ORM\Column(name="passenger", type="integer", nullable=true)
*/
private $passenger;
/**
* @var \DateTime
*
* @ORM\Column(name="entrydate", type="datetime", nullable=false)
*/
private $entrydate;
/**
* @var \DateTime
*
* @ORM\Column(name="searchUrl", type="datetime", nullable=false)
*/
private $searchUrl;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="alerts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\AgencyBundle\Entity\Agency $agency = null;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set email.
*
* @param string $email
*
* @return Alerts
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set url.
*
* @param string $url
*
* @return Alerts
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* Get url.
*
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Set price.
*
* @param string $price
*
* @return Alerts
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get price.
*
* @return string
*/
public function getPrice()
{
return $this->price;
}
/**
* Set updatePrice.
*
* @param bool $updatePrice
*
* @return Alerts
*/
public function setUpdatePrice($updatePrice)
{
$this->updatePrice = $updatePrice;
return $this;
}
/**
* Get updatePrice.
*
* @return bool
*/
public function getUpdatePrice()
{
return $this->updatePrice;
}
/**
* Set trip.
*
* @param string $trip
*
* @return Alerts
*/
public function setTrip($trip)
{
$this->trip = $trip;
return $this;
}
/**
* Get trip.
*
* @return string
*/
public function getTrip()
{
return $this->trip;
}
/**
* Set departure.
*
* @param string $departure
*
* @return Alerts
*/
public function setDeparture($departure)
{
$this->departure = $departure;
return $this;
}
/**
* Get departure.
*
* @return string
*/
public function getDeparture()
{
return $this->departure;
}
/**
* Set round.
*
* @param string $round
*
* @return Alerts
*/
public function setRound($round)
{
$this->round = $round;
return $this;
}
/**
* Get round.
*
* @return string
*/
public function getRound()
{
return $this->round;
}
/**
* Set passenger.
*
* @param int $passenger
*
* @return Alerts
*/
public function setPassenger($passenger)
{
$this->passenger = $passenger;
return $this;
}
/**
* Get passenger.
*
* @return int
*/
public function getPassenger()
{
return $this->passenger;
}
/**
* Set entrydate.
*
* @param \DateTime $entrydate
*
* @return Alerts
*/
public function setEntrydate($entrydate)
{
$this->entrydate = $entrydate;
return $this;
}
/**
* Get entrydate.
*
* @return \DateTime
*/
public function getEntrydate()
{
return $this->entrydate;
}
/**
* Set searchUrl.
*
* @param \DateTime $searchUrl
*
* @return Alerts
*/
public function setSearchUrl($searchUrl)
{
$this->searchUrl = $searchUrl;
return $this;
}
/**
* Get searchUrl.
*
* @return \DateTime
*/
public function getSearchUrl()
{
return $this->searchUrl;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return Alerts
*/
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;
}
}