*/
private $longitude;
+ /**
+ * @var boolean
+ */
+ private $hotspot;
+
/**
* @var \DateTime
*/
*/
private $sessions;
+ /**
+ * @var \Doctrine\Common\Collections\Collection
+ */
+ private $snippets;
+
/**
* Constructor
*/
public function __construct() {
$this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
+ $this->snippets = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
return $this->longitude;
}
+ /**
+ * Set hotspot
+ *
+ * @param boolean $hotspot
+ *
+ * @return Session
+ */
+ public function setHotspot($hotspot) {
+ $this->hotspot = $hotspot;
+
+ return $this;
+ }
+
+ /**
+ * Get hotspot
+ *
+ * @return boolean
+ */
+ public function getHotspot() {
+ return $this->hotspot;
+ }
+
/**
* Set created
*
return $this->sessions;
}
+ /**
+ * Add snippet
+ *
+ * @param \Rapsys\AirBundle\Entity\Snippet $snippet
+ *
+ * @return Location
+ */
+ public function addSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) {
+ $this->snippets[] = $snippet;
+
+ return $this;
+ }
+
+ /**
+ * Remove snippet
+ *
+ * @param \Rapsys\AirBundle\Entity\Snippet $snippet
+ */
+ public function removeSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) {
+ $this->snippets->removeElement($snippet);
+ }
+
+ /**
+ * Get snippets
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getSnippets() {
+ return $this->snippets;
+ }
+
/**
* Returns a string representation of the location
*