]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Location.php
Add register template
[airbundle] / Entity / Location.php
index 43605ed6142ff70fb260a5af6857283f3a19d0c1..fd619698cbf4ff8b455f70f728bfec446bca5737 100644 (file)
@@ -46,6 +46,11 @@ class Location {
         */
        private $longitude;
 
+       /**
+        * @var boolean
+        */
+       private $hotspot;
+
        /**
         * @var \DateTime
         */
@@ -61,11 +66,23 @@ class Location {
         */
        private $sessions;
 
+       /**
+        * @var \Doctrine\Common\Collections\Collection
+        */
+       private $snippets;
+
+       /**
+        * @var \Doctrine\Common\Collections\Collection
+        */
+       private $users;
+
        /**
         * Constructor
         */
        public function __construct() {
                $this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
+               $this->snippets = new \Doctrine\Common\Collections\ArrayCollection();
+               $this->users = new \Doctrine\Common\Collections\ArrayCollection();
        }
 
        /**
@@ -231,6 +248,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 +345,68 @@ 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;
+       }
+
+       /**
+        * Add user
+        *
+        * @param \Rapsys\AirBundle\Entity\User $user
+        *
+        * @return Location
+        */
+       public function addUser(\Rapsys\AirBundle\Entity\User $user) {
+               $this->users[] = $user;
+
+               return $this;
+       }
+
+       /**
+        * Remove user
+        *
+        * @param \Rapsys\AirBundle\Entity\User $user
+        */
+       public function removeUser(\Rapsys\AirBundle\Entity\User $user) {
+               $this->users->removeElement($user);
+       }
+
+       /**
+        * Get users
+        *
+        * @return \Doctrine\Common\Collections\Collection
+        */
+       public function getUsers() {
+               return $this->users;
+       }
+
        /**
         * Returns a string representation of the location
         *