X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/b40c7468d7e9b4cb838a10b68d267f302d956931..a70bc7c48c35badf69e217d35f1bb3e37be18daf:/Entity/Location.php?ds=sidebyside diff --git a/Entity/Location.php b/Entity/Location.php index 43605ed..e57f235 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -46,6 +46,11 @@ class Location { */ private $longitude; + /** + * @var boolean + */ + private $hotspot; + /** * @var \DateTime */ @@ -61,11 +66,17 @@ class Location { */ 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(); } /** @@ -231,6 +242,28 @@ class Location { 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 * @@ -306,6 +339,37 @@ class Location { 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 *