startDate = $startDate; return $this; } /** * Get startDate * * @return \DateTime */ public function getStartDate() { return $this->startDate; } /** * Set endDate * * @param \DateTime $endDate * * @return FlightPeriod */ public function setEndDate($endDate) { $this->endDate = $endDate; return $this; } /** * Get endDate * * @return \DateTime */ public function getEndDate() { return $this->endDate; } /** * Set price * * @param float $price * * @return FlightPeriod */ public function setPrice($price) { $this->price = $price; return $this; } /** * Get price * * @return float */ public function getPrice() { return $this->price; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set travelArrivalPoint * * @param \AppBundle\Entity\TravelArrivalPoint $travelArrivalPoint * * @return FlightPeriod */ public function setTravelArrivalPoint(\AppBundle\Entity\TravelArrivalPoint $travelArrivalPoint = null) { $this->travelArrivalPoint = $travelArrivalPoint; return $this; } /** * Get travelArrivalPoint * * @return \AppBundle\Entity\TravelArrivalPoint */ public function getTravelArrivalPoint() { return $this->travelArrivalPoint; } /** * Constructor */ public function __construct() { $this->departures = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add departure * * @param \AppBundle\Entity\TravelDeparturePoint $departure * * @return FlightPeriod */ public function addDeparture(\AppBundle\Entity\TravelDeparturePoint $departure) { $this->departures[] = $departure; return $this; } /** * Remove departure * * @param \AppBundle\Entity\TravelDeparturePoint $departure */ public function removeDeparture(\AppBundle\Entity\TravelDeparturePoint $departure) { $this->departures->removeElement($departure); } /** * Get departures * * @return \Doctrine\Common\Collections\Collection */ public function getDepartures() { return $this->departures; } }