src/Aviatur/GeneralBundle/Entity/Alerts.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Alerts.
  6.  *
  7.  * @ORM\Table(name="alerts")
  8.  * @ORM\Entity(repositoryClass="AlertsRepository")
  9.  */
  10. class Alerts
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="email", type="string", length=255, nullable=false)
  24.      */
  25.     public $email;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="url", type="string", length=255, nullable=false)
  30.      */
  31.     public $url;
  32.     /**
  33.      * @ORM\Column(name="price", type="decimal", scale=2)
  34.      */
  35.     public $price;
  36.     /**
  37.      * @var bool
  38.      *
  39.      * @ORM\Column(name = "updatePrice", type = "boolean")
  40.      */
  41.     private $updatePrice;
  42.     /**
  43.      * @ORM\Column(name="trip", type="string", length=150)
  44.      */
  45.     public $trip;
  46.     /**
  47.      * @ORM\Column(name="departure", type="string", length=150 , nullable=true)
  48.      */
  49.     public $departure;
  50.     /**
  51.      * @ORM\Column(name="round", type="string", length=150 , nullable=true)
  52.      */
  53.     public $round;
  54.     /**
  55.      * @var int
  56.      *
  57.      * @ORM\Column(name="passenger", type="integer", nullable=true)
  58.      */
  59.     private $passenger;
  60.     /**
  61.      * @var \DateTime
  62.      *
  63.      * @ORM\Column(name="entrydate", type="datetime", nullable=false)
  64.      */
  65.     private $entrydate;
  66.     /**
  67.      * @var \DateTime
  68.      *
  69.      * @ORM\Column(name="searchUrl", type="datetime", nullable=false)
  70.      */
  71.     private $searchUrl;
  72.     /**
  73.      *
  74.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency", inversedBy="alerts")
  75.      * @ORM\JoinColumns({
  76.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  77.      * })
  78.      */
  79.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  80.     /**
  81.      * Get id.
  82.      *
  83.      * @return int
  84.      */
  85.     public function getId()
  86.     {
  87.         return $this->id;
  88.     }
  89.     /**
  90.      * Set email.
  91.      *
  92.      * @param string $email
  93.      *
  94.      * @return Alerts
  95.      */
  96.     public function setEmail($email)
  97.     {
  98.         $this->email $email;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get email.
  103.      *
  104.      * @return string
  105.      */
  106.     public function getEmail()
  107.     {
  108.         return $this->email;
  109.     }
  110.     /**
  111.      * Set url.
  112.      *
  113.      * @param string $url
  114.      *
  115.      * @return Alerts
  116.      */
  117.     public function setUrl($url)
  118.     {
  119.         $this->url $url;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get url.
  124.      *
  125.      * @return string
  126.      */
  127.     public function getUrl()
  128.     {
  129.         return $this->url;
  130.     }
  131.     /**
  132.      * Set price.
  133.      *
  134.      * @param string $price
  135.      *
  136.      * @return Alerts
  137.      */
  138.     public function setPrice($price)
  139.     {
  140.         $this->price $price;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get price.
  145.      *
  146.      * @return string
  147.      */
  148.     public function getPrice()
  149.     {
  150.         return $this->price;
  151.     }
  152.     /**
  153.      * Set updatePrice.
  154.      *
  155.      * @param bool $updatePrice
  156.      *
  157.      * @return Alerts
  158.      */
  159.     public function setUpdatePrice($updatePrice)
  160.     {
  161.         $this->updatePrice $updatePrice;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get updatePrice.
  166.      *
  167.      * @return bool
  168.      */
  169.     public function getUpdatePrice()
  170.     {
  171.         return $this->updatePrice;
  172.     }
  173.     /**
  174.      * Set trip.
  175.      *
  176.      * @param string $trip
  177.      *
  178.      * @return Alerts
  179.      */
  180.     public function setTrip($trip)
  181.     {
  182.         $this->trip $trip;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get trip.
  187.      *
  188.      * @return string
  189.      */
  190.     public function getTrip()
  191.     {
  192.         return $this->trip;
  193.     }
  194.     /**
  195.      * Set departure.
  196.      *
  197.      * @param string $departure
  198.      *
  199.      * @return Alerts
  200.      */
  201.     public function setDeparture($departure)
  202.     {
  203.         $this->departure $departure;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get departure.
  208.      *
  209.      * @return string
  210.      */
  211.     public function getDeparture()
  212.     {
  213.         return $this->departure;
  214.     }
  215.     /**
  216.      * Set round.
  217.      *
  218.      * @param string $round
  219.      *
  220.      * @return Alerts
  221.      */
  222.     public function setRound($round)
  223.     {
  224.         $this->round $round;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get round.
  229.      *
  230.      * @return string
  231.      */
  232.     public function getRound()
  233.     {
  234.         return $this->round;
  235.     }
  236.     /**
  237.      * Set passenger.
  238.      *
  239.      * @param int $passenger
  240.      *
  241.      * @return Alerts
  242.      */
  243.     public function setPassenger($passenger)
  244.     {
  245.         $this->passenger $passenger;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get passenger.
  250.      *
  251.      * @return int
  252.      */
  253.     public function getPassenger()
  254.     {
  255.         return $this->passenger;
  256.     }
  257.     /**
  258.      * Set entrydate.
  259.      *
  260.      * @param \DateTime $entrydate
  261.      *
  262.      * @return Alerts
  263.      */
  264.     public function setEntrydate($entrydate)
  265.     {
  266.         $this->entrydate $entrydate;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get entrydate.
  271.      *
  272.      * @return \DateTime
  273.      */
  274.     public function getEntrydate()
  275.     {
  276.         return $this->entrydate;
  277.     }
  278.     /**
  279.      * Set searchUrl.
  280.      *
  281.      * @param \DateTime $searchUrl
  282.      *
  283.      * @return Alerts
  284.      */
  285.     public function setSearchUrl($searchUrl)
  286.     {
  287.         $this->searchUrl $searchUrl;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get searchUrl.
  292.      *
  293.      * @return \DateTime
  294.      */
  295.     public function getSearchUrl()
  296.     {
  297.         return $this->searchUrl;
  298.     }
  299.     /**
  300.      * Set agency.
  301.      *
  302.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  303.      *
  304.      * @return Alerts
  305.      */
  306.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  307.     {
  308.         $this->agency $agency;
  309.         return $this;
  310.     }
  311.     /**
  312.      * Get agency.
  313.      *
  314.      * @return \Aviatur\AgencyBundle\Entity\Agency
  315.      */
  316.     public function getAgency()
  317.     {
  318.         return $this->agency;
  319.     }
  320. }